Phatline

MIOS32_BOARD_J5_PinGet (4) returns 0

1 post in this topic

 

i cant get it working, tryd for ours... i want to read the J5 Pins periodicaly (want to read a IR-Sensor)

that should do the job:

void APP_Init(void){ 		MIOS32_BOARD_J5_PinInit(0, MIOS32_BOARD_PIN_MODE_ANALOG); }

void APP_Tick(void){	s16 state =  MIOS32_BOARD_J5_PinGet (4);

						MIOS32_MIDI_SendDebugMessage("val: %d   ", state ) ;}

it return 0 on MIOS-Monitor (Debug message)... on the normal APP_AIN i get values... so its not hardware issue... also i all different variations in mios_config like...:

#define MIOS32_AIN_CHANNEL_MASK 0x00ff
#define MIOS32_AIN_CHANNEL_MASK 0x0000
#define MIOS32_DONT_SERVICE_AIN 1
#define MIOS32_DONT_SERVICE_AIN 0
#define MIOS32_DONT_USE_AIN 1
#define MIOS32_DONT_USE_AIN 0

also if i

  MIOS32_BOARD_J5_PinSet (4, 3);

and then PinGet, i become 0

 

&& J10 do the same when set to PIN_MODE_ANALOG!!!

 

very strange! could be a bug.

Edited by Phatline

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now