Update Home
12
Home.md
12
Home.md
@@ -4,13 +4,9 @@ This project helps sets up a way to use a external uv sensor on as pass it's dat
|
||||
This way real uv data can be used in the emulated game, bypassing the need to manually update the sunlight value and bringing the game one step closer to it's intended behavior.
|
||||
|
||||
# How is this done?
|
||||
Simple version: By using a uv sensor on a microcontroller and passing that data to a mGBA script that turns writes that read value into RAM.
|
||||
Simple version: By using a uv sensor on a microcontroller and passing that data to a mGBA script that writes that read value into RAM.
|
||||
|
||||
More technical version: in one of two ways, it can be done by Serial, where a microcontroller writes into it and a python scripts picks it up on a computer, where it will connect to a lua server and pass data to it whenever a new value is read on the serial.
|
||||
Or by having the microcontroller connect to the wifi and having it send values to the lua server.
|
||||
More technical version: in one of two ways: If the microcontroller has WiFi capabilities you it can connect directly to the lua server, connecting via TCP and updating every half a second with a new reading, the server in turn maps the pin analog reading to in-game sun light levels and finally writes that value into memory.
|
||||
If the microcontroller does not have wifi capabilities you can still run this project but will pass information via the serial, a python script is available to bridge the serial and TCP connection, when the data arrives at the server is goes through the same mapping and converting process.
|
||||
|
||||
# what do I need to get this working?
|
||||
This project comes in 2 flavors:
|
||||
Serial version.
|
||||
WiFi version.
|
||||
Please read the introduction to both and decide which you fits your case best.
|
||||
# what do I need to get this working?
|
||||
Reference in New Issue
Block a user