Everytime I try somthing it fails miserably. I have been reading but I’m just not getting it.
I have been trying to control a Arduino app over BLE using the Adafruit nRF8001 breakout board.
I need to have a total of 4 sliders to control Speed, 4 Switches for direction, 1 switch for Mode control, 1 Switch for Delay control 30 or 60 seconds, 1 switch to control lighting.
This is for a model train setup with 4 trains, the 4th can be a trolley so the mode control sets train/trolley mode. and in trolley mode the delay switch is read.
Attached is my current working code (arduino) that works with the hardwired switches and sliders.
I need this to work from either hardwired controls or over BLE from a android device.
Can anyone look at the working code and please help me get this working? I just keep failing at every attempt I make. Really frustrated and close to giving up.
I have read the serial pages a bunch of times but just am not getting how to do this.
Thanks in advance for your help.