This sketch makes your M5 Core into a remote bluetooth terminal.
Credit goes to Bodmer for the example code this is based on: https://github.com/Bodmer/TFT_eSPI/tree/master/examples/320%20x%20240/TFT_Terminal.
This MAIN m5stack branch is for work on integrating into M5Stack.
- Press Button A for no display auto-sleep (i.e. NoZ, default). Long-press Button A to turn on auto-sleep (ZZZ). Press Button B to cycle display brightness down and up. Long-press to return to full brightness
- Press Button C to force wake display. Long-press Button C to force sleep display.
- NOTE: DISPLAY WILL AUTO-WAKE ON ANY INPUT.
- Battery status upper right
- Auto-Sleep status in upper left.
I'm using the latest M5STACK from github. In Arduino, set Tool->Partition Scheme-> No OTA (Large APP)
Linux Example:
$ sudo bluetoothctl
[bluetooth]# agent on
[bluetooth]# scan on
[NEW] Device 08:3E:8E:E6:79:47 annapurna
[NEW] Device 00:25:56:D1:36:6B ubuntu-0
....
[NEW] Device <bluetooth address> BLUETERM5
[bluetooth]# pair <bluetooth address>
[bluetooth]# trust <bluetooth address>
CTRL-D
$ sudo rfcomm connect /dev/rfcomm0 <bluetooth address> 1
$ tail -f /var/log/syslog > /dev/rfcomm0