Difference between revisions of "Newline2020/Badge"
(→Getting started) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 7: | Line 7: | ||
Contact [[User:qwaxys|qwaxys]] for questions. | Contact [[User:qwaxys|qwaxys]] for questions. | ||
+ | |||
+ | Board: https://git.disroot.org/tkteun/newline_pcb/src/branch/master | ||
He'll inform with badge.team to see if we can run their firmware. | He'll inform with badge.team to see if we can run their firmware. | ||
== We'll help: == | == We'll help: == | ||
+ | - Tom (@badge.team) | ||
- Anus (@badge.team) | - Anus (@badge.team) | ||
- Renze (@badge.team) | - Renze (@badge.team) | ||
- ON8LTE (WB) | - ON8LTE (WB) | ||
− | + | ON8LTE created the first version of the PCB. | |
== Sponsors: == | == Sponsors: == | ||
Line 81: | Line 84: | ||
display.drawText(0,0,"Hello\nWorld!",0x00aa00,"permanentmarker36") | display.drawText(0,0,"Hello\nWorld!",0x00aa00,"permanentmarker36") | ||
display.flush() | display.flush() | ||
+ | </pre> | ||
− | + | [[File:Ttgo_t-display_hello_world.jpg|500px|thumb|left|Writing to the screen]] |
Latest revision as of 16:25, 7 March 2020
<< Newline2020
Current idea: a PCB somewhat similar to the GameBoy Advance that acts as a shield for the TTGO T-Display
Why? Because for a small batch this will be the easiest to produce. We'll do the soldering ourselves. It also gives you the option to recycle the ESP instead of being stuck with our badge.
Contact qwaxys for questions.
Board: https://git.disroot.org/tkteun/newline_pcb/src/branch/master
He'll inform with badge.team to see if we can run their firmware.
Contents
We'll help:[edit]
- Tom (@badge.team) - Anus (@badge.team) - Renze (@badge.team) - ON8LTE (WB)
ON8LTE created the first version of the PCB.
Sponsors:[edit]
- qwaxys - LilyGO ( 50% of the TTGO T-Display ) - N0b0t - you? - 0x20?
Current target is 50-100 pieces to hand out for free.
First PCB will have touch buttons, 2 shoulder buttons, a piezo buzzer, some LED's and a connector for the MFRC522 (over I2C)
Getting started? The ESP module is available on Aliexpress and Amazon
Goals:[edit]
☑ Get some sample modules ☑ Get them working with Arduino IDE (as plan B) ☑ Get Badge.team firmware running on the badge ☑ Running python from the console over serial ☐ Running python from a file on the module ☐ Get the menu working ☐ Get the apps repo working ☐ Hackathon @ HSG for some apps ☐ ...
Getting started[edit]
Building the firmware[edit]
Get the code and all requirements, then build
git clone https://github.com/badgeteam/ESP32-platform-firmware.git sudo apt-get install make unzip git libncurses5-dev flex bison gperf python-serial libffi-dev libsdl2-dev libmbedtls-dev perl cd ESP32-platform-firmware/ git submodule update --init --recursive unzip -p toolchain/xtensa-esp32-elf-linux64.zip xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar | tar xv cp firmware/configs/ttgo_tdisplay_defconfig firmware/sdkconfig ./build.sh
Flashing the module[edit]
For every module, run:
sudo ./erase.sh sudo ./flash.sh
Your TTGO-T-display should now run micropython.
Connecting over serial[edit]
Use your favorite serial program to connect with a speed of 9600.
You can test the screen with:
import display display.drawText(0,0,"Hello\nWorld!",0x00aa00,"permanentmarker36") display.flush()