I have a lot of boards and usually need to re-use code even for different projects.
cube cedb25e5bc Add 'CARDPUTER CircuitPython/wifi_switcher/readme.md' 1 月之前
..
code.py wifi switcher 1 月之前
readme.md Add 'CARDPUTER CircuitPython/wifi_switcher/readme.md' 1 月之前
settings.toml sample settings.toml 1 月之前

readme.md

set up

  • write ssid and password pairs in settings.toml, the variable names dont matter at all
  • put those variable names into the "wifi options" list in code.py
  • don't need to touch the rest of the code, and you can add more items or delete items from the list, the menu screen will adjust accordingly

to do / notes

  • esc button bypasses any need to connect to wifi - although maybe dont include this in offline projects :P
  • since you can choose, this makes cardputer basically portable since i can turn on hotspot