You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-25Lines changed: 43 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,16 @@ Three tact buttons or Encoder or all together
42
42
| RSTL | 15*| TFT_RST |
43
43
| DCL | 4*| TFT_DC |
44
44
45
+
| NOKIA5110 | ESP-32 | options.h |
46
+
| ------ | ------ | ------ |
47
+
| RST | 15*| TFT_RST |
48
+
| CE | 5*| TFT_CS |
49
+
| DC | 4*| TFT_DC |
50
+
| DIN | 23 | - |
51
+
| CLK | 18 | - |
52
+
| VCC | +3v3 | - |
53
+
| GND | GND | - |
54
+
45
55
| I2C Display | ESP-32 | options.h |
46
56
| ------ | ------ | ------ |
47
57
| GND | GND | - |
@@ -76,7 +86,7 @@ Adafruit_GFX, Adafruit_ST7735\*, Adafruit_SSD1306\*, Adafruit_PCD8544\*, (\* dep
76
86
## Hardware setup
77
87
Hardware is connected in the **[options.h](yoRadio/options.h)** file. \
78
88
_so that the settings are not overwritten when updating git, you need to put the file **myoptions.h** ([exsample](exsamples/myoptions.h)) in the root of the project and make settings in it_
79
-
````
89
+
````c++
80
90
/* DISPLAY MODEL
81
91
* 0 - DUMMY
82
92
* 1 - ST7735
@@ -86,16 +96,16 @@ _so that the settings are not overwritten when updating git, you need to put the
86
96
#defineDSP_MODEL 1
87
97
````
88
98
The ST7735 display model is configured in the file [src/displays/displayST7735.cpp](yoRadio/src/displays/displayST7735.cpp)
Rotation of the ST7735 display is configured in the file [src/displays/displayST7735.h](yoRadio/src/displays/displayST7735.h)
94
-
````
104
+
````c++
95
105
#defineTFT_ROTATE 3 // 180 degress
96
106
````
97
107
If there is a noisy line on one side of the screen, then in Adafruit_ST7735.cpp:
98
-
````
108
+
````c++
99
109
// Black tab, change MADCTL color filter
100
110
if ((options == INITR_BLACKTAB) || (options == INITR_MINI160x80)) {
101
111
uint8_t data = 0xC0;
@@ -107,42 +117,50 @@ If there is a noisy line on one side of the screen, then in Adafruit_ST7735.cpp:
107
117
108
118
---
109
119
## Quick start
110
-
1. In ArduinoIDE - upload sketch data (Tools→ESP32 Sketch Data Upload)
111
-
2. Upload the sketch to the board ([example of the board connection](images/board.jpg))
120
+
1. In ArduinoIDE - upload sketch data via Tools→ESP32 Sketch Data Upload ([it's here](images/board2.jpg))
121
+
2. Upload the sketch to the board ([example of the board settings](images/board.jpg))
112
122
3. Connect to yoRadioAP acces point with password 12345987, go to http://192.168.4.1/ configure and wifi connections. \
113
123
_\*this step can be skipped if you add WiFiSSID WiFiPassword pairs to the [yoRadio/data/data/wifi.csv](yoRadio/data/data/wifi.csv) file (tab-separated values, one line per access point) before uploading the sketch data in step 1_
114
-
4. After successful connection go to http://\<ipaddress\>/ , add stations to playlist (or import WebStations.txt from KaRadio)
124
+
4. After successful connection go to http://\<yoipaddress\>/ , add stations to playlist (or import WebStations.txt from KaRadio)
115
125
5. Well done!
116
126
117
-
**localization:**
127
+
**Localization:**
118
128
Если Adafruit_GFX ещё не русифицирована, русифицировать её, заменив файл Arduino/libraries/Adafruit_GFX_Library/glcdfont.c файлом [yoRadio/fonts/glcdfont.c](yoRadio/fonts/glcdfont.c)
119
129
120
130
---
121
131
## More features
122
132
- Сan add up to 65535 stations to a playlist. Supports and imports [KaRadio](https://github.com/karawin/Ka-Radio32) playlists (WebStations.txt)
123
133
- Telnet with KaRadio format output \
124
134
**Commands**: \
125
-
cli.prev (or simply prev) - previous station \
126
-
cli.next, next - next station \
127
-
cli.toggle, toggle - start/stop \
128
-
cli.stop, stop - stop \
129
-
cli.start, start, cli.play, play - start playing \
130
-
cli.play("x"), play(x), play x - play station x \
131
-
cli.vol, vol - the current value of volume (0-254) \
132
-
cli.vol("x"), vol(x), vol x - set volume (0-254) \
133
-
cli.audioinfo, audioinfo - the current value of debug (0-1) \
134
-
cli.audioinfo("x"), audioinfo(x), audioinfo x - debug on/off (0-1) \
135
-
cli.smartstart, smartstart - the current value of smart start \
136
-
cli.smartstart("x"), smartstart(x), smartstart x - smart start: 2-off, 0-1 - start playing on boot, if the radio was playing before the reboot \
137
-
cli.list, list - get playlist \
138
-
cli.info, info - get current state \
139
-
sys.boot, boot, reboot - reboot \
140
-
sys.date - date/time
135
+
**cli.prev** (_or simply_**prev**) - previous station \
136
+
**cli.next**_or_**next** - next station \
137
+
**cli.toggle**_or_**toggle** - start/stop \
138
+
**cli.stop**_or_**stop** - stop \
139
+
**cli.start**_or_**start**_or_**cli.play**_or_**play** - start playing \
140
+
**cli.play("x")**_or_**play(x)**_or_**play x** - play station x \
141
+
**cli.vol**_or_**vol** - display the current value of volume (0-254) \
142
+
**cli.vol("x")**_or_**vol(x)**_or_**vol x** - set volume (0-254) \
143
+
**cli.audioinfo**_or_**audioinfo** - display the current value of debug (0-1) \
**cli.smartstart**_or_**smartstart** - display the current value of smart start \
146
+
**cli.smartstart("x")**_or_**smartstart(x)**_or_**smartstart x** - smart start: 2-off, 0-1 - start playing on boot, if the radio was playing before the reboot \
147
+
**cli.list**_or_**list** - display playlist \
148
+
**cli.info**_or_**info** - display current state \
149
+
**sys.boot**_or_**boot**_or_**reboot** - reboot \
150
+
**sys.date** - sync date/time and display it \
151
+
**sys.tzo**_or_**tzo** - display the timezone offset \
152
+
**sys.tzo("h:m")**_or_**tzo(h:m)**_or_**tzo h:m** - set timezone offset \
153
+
**sys.tzo("h")**_or_**tzo(h)**_or_**tzo h** - set timezone offset in hours only
141
154
142
155
---
143
156
## Version history
157
+
#### v0.4.210
158
+
- added timezone config by telnet
159
+
- fix telnet output
160
+
- some separation apples and oranges
161
+
144
162
#### v0.4.199
145
-
- excluded required installation of all libraries for displays.
163
+
- excluded required installation of all libraries for displays
0 commit comments