Editing Tutorial Network
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 12: | Line 12: | ||
* We use '''[https://www.sketching-with-hardware.org/files/netvars.py netvars.py]''' | * We use '''[https://www.sketching-with-hardware.org/files/netvars.py netvars.py]''' | ||
* OPTIONAL: you can download the files to set up your own server. This is in php and requires mySQL. https://www.sketching-with-hardware.org/files/netvarsServer.zip (see readme for details) | * OPTIONAL: you can download the files to set up your own server. This is in php and requires mySQL. https://www.sketching-with-hardware.org/files/netvarsServer.zip (see readme for details) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Instructional Videos = | = Instructional Videos = | ||
− | == | + | == Writing to the OLED Display over I2C == |
− | In this video on youtube ( | + | In this video on youtube (22:00) we show how to write text to the OLED Display on the ESP32 module. We then show how to connect a poti to an analog input and display the value in a loop on the display: https://youtu.be/UbxwePvgX-U |
− | <youtube> | + | <youtube>UbxwePvgX-U</youtube> |
== Using the uPyCraft IDE to upload files == | == Using the uPyCraft IDE to upload files == | ||
Line 31: | Line 24: | ||
<youtube>MXfj_gWf0z4</youtube> | <youtube>MXfj_gWf0z4</youtube> | ||
+ | |||
= Code Examples = | = Code Examples = | ||
Line 56: | Line 50: | ||
print(a) # will print valTest222 | print(a) # will print valTest222 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Code Example: netvars.py == | == Code Example: netvars.py == | ||
− | |||
− | |||
<syntaxhighlight lang="python" line='line'> | <syntaxhighlight lang="python" line='line'> | ||
import network | import network | ||
Line 225: | Line 122: | ||
# print(a) # will print valTest222 | # print(a) # will print valTest222 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− |