1

Ok, so i have a unit that i want to add information to the EEPROM, using the USB port, such as SSID for wifi shields.

Then i want to disconnect the USB cable, plugin a battery and then it should run its normal loop.

So something like:

IF usb-cable 
   run_setup_loop();
ELSE
   run_main_loop();
  • Which board do you use? – Gerben Oct 21 '15 at 18:37
  • Uno 3 and Nano China – Magic-Mouse Oct 22 '15 at 7:33
  • Not really possible with the Uno or Nano. The UNO might work if you change the program on the 16u2 (that does the usb to serial). I think it would be easier to detect serial input (e.g. user presses enter) using if( Serial.available()). And then when some serial data has come in, change "mode" to setup-mode. – Gerben Oct 22 '15 at 9:11
  • The wifi module is serial also so that wouldnt work. – Magic-Mouse Oct 22 '15 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.