update buttons on nrf boards

This commit is contained in:
Gordon Williams 2016-09-12 14:43:20 +01:00
parent f1094f6cca
commit b661a7b503
2 changed files with 12 additions and 12 deletions

View File

@ -55,14 +55,14 @@ chip = {
};
devices = {
'LED1' : { 'pin' : 'D21' },
'LED2' : { 'pin' : 'D22' },
'LED3' : { 'pin' : 'D23' },
'LED4' : { 'pin' : 'D24' },
'BTN1' : { 'pin' : 'D17'},
'BTN2' : { 'pin' : 'D18'},
'BTN3' : { 'pin' : 'D19'},
'BTN4' : { 'pin' : 'D20'},
'LED1' : { 'pin' : 'D21', 'inverted' : True },
'LED2' : { 'pin' : 'D22', 'inverted' : True },
'LED3' : { 'pin' : 'D23', 'inverted' : True },
'LED4' : { 'pin' : 'D24', 'inverted' : True },
'BTN1' : { 'pin' : 'D17', 'inverted' : True, 'pinstate' : 'IN_PULLUP'},
'BTN2' : { 'pin' : 'D18', 'inverted' : True, 'pinstate' : 'IN_PULLUP'},
'BTN3' : { 'pin' : 'D19', 'inverted' : True, 'pinstate' : 'IN_PULLUP'},
'BTN4' : { 'pin' : 'D20', 'inverted' : True, 'pinstate' : 'IN_PULLUP'},
'RX_PIN_NUMBER' : { 'pin' : 'D11'},
'TX_PIN_NUMBER' : { 'pin' : 'D9'},
'CTS_PIN_NUMBER' : { 'pin' : 'D10'},

View File

@ -59,10 +59,10 @@ devices = {
'LED2' : { 'pin' : 'D18', 'inverted' : True },
'LED3' : { 'pin' : 'D19', 'inverted' : True },
'LED4' : { 'pin' : 'D20', 'inverted' : True },
'BTN1' : { 'pin' : 'D13', 'inverted' : True },
'BTN2' : { 'pin' : 'D14', 'inverted' : True },
'BTN3' : { 'pin' : 'D15', 'inverted' : True },
'BTN4' : { 'pin' : 'D16', 'inverted' : True },
'BTN1' : { 'pin' : 'D13', 'inverted' : True, 'pinstate' : 'IN_PULLUP' },
'BTN2' : { 'pin' : 'D14', 'inverted' : True, 'pinstate' : 'IN_PULLUP' },
'BTN3' : { 'pin' : 'D15', 'inverted' : True, 'pinstate' : 'IN_PULLUP' },
'BTN4' : { 'pin' : 'D16', 'inverted' : True, 'pinstate' : 'IN_PULLUP' },
'RX_PIN_NUMBER' : { 'pin' : 'D8'},
'TX_PIN_NUMBER' : { 'pin' : 'D6'},
'CTS_PIN_NUMBER' : { 'pin' : 'D7'},