import mraa
import time
led_gpio = mraa.Gpio(61)
led_gpio.dir(mraa.DIR_OUT)
#PD26_AIN_SEN1 pin 20
pot_aio = mraa.Aio(20)
def rugged_board_write_led(value):
value = 1 if value==0 else 0
led_gpio.write(value)
def rugged_board_read_pot():
potvalue = pot_aio.readFloat()
return potvalue
value = 1
while True:
value = 1 if value==0 else 0
#toggle led
print(rugged_board_write_led(value))
time.sleep(1)
print(rugged_board_read_pot())
time.sleep(1)
RuggedBoard-A5D2x new hardware manual will be shared shortly. Where all the PIN out including the MRAA Pin Mapping is available.
I think pin mapping of MRAA board file and the Pin Muxing sheet should be helpful for you to correctly assign the pins for your testing.
Requesting @GopalKrishna Bypalli @Ganesh K to provide the Pin mapping of Mraa Board file and Pin Muxing Sheet.