Projects
Here are bigger files - projects. They usually combine more than one feature to produce something with some form of a use. It will be harder to preen specific example out of these, but they should run and work and produce the result expected.
m5-gps
- Requires
tinygpsplus library
- GPS module (m5 v1.1) must be connected to the left port on the terminal itself. It will not work in the right side, and it hasn't been tested in other ports on the battery pack.
- Currently displays current co-ordinates on the screen, using a black rectangle around the text area when refreshing so that other parts of the screen can be used without needing to black out the entire thing.
- "last_x" variables used so that the screen isn't constantly flickering with unecessary updates
- Connects to wifi based on ssid and pw variables and uses this info to look up the coordinates and give them a name
- Displays date in the bottom left corner and time in the bottom right (both obtained from gps)
Todo / Issues
- Option / version that doesn't auto update (except for boot) and only refreshes location info on a button press OR maybe, wifi only connects on button press / api call is only made on a button press. Further testing is required with the current coords and "last updated" system, I have only written this code while sitting still in one spot in my house :P
- I think the wifi code interferes with functionality, need to test further to make sure the gps functions will work entirely idependently of whether there is functional wifi.