2024-05-23 22:42:03 +00:00
< p align = "center" >
2024-05-25 20:36:06 +00:00
< img src = "./.screens/aciddrop2.png" / >
2024-05-23 22:42:03 +00:00
< / p >
# Work in progress
This is a custom firmware being developed for the [LilyGo T-Deck ](https://www.lilygo.cc/products/t-deck ), currently it is experimental & buggy.
I am terrible at C++ and still am trying to wrap my head around the language's logic, so most of this code has been shit out and written like a cowboy.
2024-05-26 02:04:47 +00:00
The project started out with as IRC bridge for [Meshtastic ](https://meshtastic.org/ ) over MQTT, just so I could say "we have IRC over radio", which later led to me modifying the official Meshtastic [firmware ](https://github.com/meshtastic/firmware ) to add extended features. I am deep in the rabbit hole of embedded development and am starting from scratch making this an entirely custom firmware.
2024-05-23 22:42:03 +00:00
This is being developed in my free time as a fun project. It is no where near being useful.
2024-05-26 17:55:53 +00:00
A compiled "release" will be done once I finish somoe fo the basic features, but feel free t compile this on your own to test it out!
2024-05-25 20:36:06 +00:00
# Previews
2024-05-25 20:37:54 +00:00
![](./.screens/preview1.png) ![](./.screens/preview2.png)
2024-05-25 20:36:06 +00:00
2024-05-25 06:13:12 +00:00
# Flashing the Firmware
2024-05-26 00:11:26 +00:00
###### Using VS Code
2024-05-25 20:36:06 +00:00
1. Add your user to the `dialout` group: `sudo gpasswd -a YOURUSERNAME dialout` *(You will need to re-login after adding your user to the `dialout` group for it to take affect)*
2024-05-25 06:13:12 +00:00
2. Install [Visual Studio Code ](https://code.visualstudio.com/ )
3. Install the [PlatformIO plugin ](https://platformio.org/install/ide?install=vscode )
2024-05-25 20:36:06 +00:00
4. Hold down the trackball on the device, turn it on, and plug it in to the computer.
5. Press **F1** and select `PlatformIO: Build`
6. Press **F1** and select `PlatformIO: Upload`
2024-05-28 04:57:52 +00:00
7. Press the RST *(reset)* button on the device.
2024-05-25 06:13:12 +00:00
2024-05-26 00:11:26 +00:00
###### Using ESP Tool
2024-05-27 22:52:54 +00:00
1. Take the `firmware.bin` file from the release page and download it.
2024-05-26 00:11:26 +00:00
2. Install [esptool ](https://pypi.org/project/esptool/ ): `pip install esptool`
3. Hold down the trackball on the device, turn it on, and plug it in to the computer.
4. Confirm the serial device in your `/dev` directory *(Your device will likely be `/dev/ttyAMC0` or `/dev/ttyUSB0`)*
2024-05-26 21:57:14 +00:00
5. Flash the device: `esptool.py --chip esp32-s3 --port /dev/ttyUSB0 --baud 115200 write_flash -z 0x1000 firmware.bin`
2024-05-28 04:57:52 +00:00
6. Press the RST *(reset)* button on the device.
2024-05-25 06:13:12 +00:00
2024-05-26 23:27:12 +00:00
# Connecting to WiFi
The device will scan for WiFi networks on boot. Once the list is displayed, you can scroll up and down the list with the "u" key for UP and the "d" key for down.
2024-05-27 05:57:21 +00:00
# Commands
| Command | Description |
| --------------- | --------------------------- |
| `/debug` | Show hardware information |
| `/me <message>` | Send an ACTION message |
2024-05-27 19:58:04 +00:00
| `/nick <new>` | Change your NICK on IRC |
2024-05-27 05:57:21 +00:00
| `/raw <data>` | Send RAW data to the server |
2024-05-26 23:27:12 +00:00
# Debugging over Serial
2024-05-26 23:04:25 +00:00
1. Install screen: `apt-get install screen` *(or whatever package manager you use)*
2024-05-26 23:31:26 +00:00
2. Plug in your device via USB.
2. Turn the device on, and run: `screen /dev/ttyAMC0 9600` *(again, this can also be /dev/ttyUSB0)*
2024-05-26 23:04:25 +00:00
2024-05-23 22:42:03 +00:00
# Roapmap
2024-05-26 05:23:53 +00:00
###### Device functionality
2024-05-26 04:39:05 +00:00
- [X] Screen timeout on inactivity *(default 30 seconds)*
2024-05-26 05:23:53 +00:00
- [ ] Keyboard backlight timeout on 10 seconds oof inactivity.
- [ ] Trackball support
- [ ] Speaker support
###### Features
2024-05-25 20:38:58 +00:00
- [X] Wifi scanning & selection menu
- [ ] Saved wifi profiles
2024-05-26 05:23:53 +00:00
- [ ] Wifi Hotspot
- [ ] Notifcations Window *(All notifications will go here, from IRC, Gotify, Meshtastic, or anything)*
- [X] Status bar *(Time, Date, Notification, Wifi, and Battery)*
- [ ] XBM icons for status bar items
- [ ] Allow specifying the IRC server, port, TLS, nick, etc...
- [ ] Screensaver
2024-05-26 23:27:12 +00:00
- [X] Serial debug logs
2024-05-26 05:23:53 +00:00
###### Applications
2024-05-25 01:49:38 +00:00
- [X] IRC Client
2024-05-26 03:39:20 +00:00
- [X] `/raw` command for IRC client to send raw data to the server
- [ ] Add scrolling backlog for IRC to see the last 200 messages
2024-05-28 04:42:29 +00:00
- [ ] Multi-buffer support *(`/join` & `/part` support with switching between buffers with `/0`, `/1`, `/2`, etc)*
2024-05-26 03:39:20 +00:00
- [X] Hilight support *(so we can see when people mention our NICK)*
2024-05-27 06:33:25 +00:00
- [X] 99 color support
2024-05-25 01:49:38 +00:00
- [ ] ChatGPT
- [ ] SSH Client
- [ ] Wardriving
2024-05-26 05:23:53 +00:00
- [ ] Evil Portal AP
2024-05-26 05:26:01 +00:00
- [ ] Local Network Probe *(Scans for devices on the wifi network you are connected to, add port scanning)*
2024-05-25 01:49:38 +00:00
- [ ] Gotify
- [ ] Meshtastic
2024-05-26 05:23:53 +00:00
- [ ] Spotify/Music player *(can we play audio throuigh Bluetoth headphones or the on-board speaker?)*
- [ ] Syslog *(All serial logs will be displayed here for on-device debugging)*
2024-05-23 22:42:03 +00:00
2024-05-26 01:03:05 +00:00
# Known issues
- Messages that exceed the screen width and wrap to the next line will throw off thje logic of calculating the max lines able to be displayed on the screen. Messages eventually go off screen.
2024-05-23 22:42:03 +00:00
# Contributors
Join us in ** #comms ** on ** [irc.supernets.org ](irc://irc.supernets.org )** if you want to get your hands dirty.
2024-05-27 06:43:34 +00:00
# More screens..
![](./.screens/99colors.png)
![](./.screens/hueg.png)
2024-05-23 22:42:03 +00:00
___
###### Mirrors for this repository: [acid.vegas](https://git.acid.vegas/acid-drop) • [SuperNETs](https://git.supernets.org/acidvegas/acid-drop) • [GitHub](https://github.com/acidvegas/acid-drop) • [GitLab](https://gitlab.com/acidvegas/acid-drop) • [Codeberg](https://codeberg.org/acidvegas/acid-drop)