Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
3c38cba7
Unverified
Commit
3c38cba7
authored
Jan 10, 2022
by
Wolle
Committed by
GitHub
Jan 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
161e761c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
examples/Simple WiFI Radio/Simple_WiFi_Radio.ino
examples/Simple WiFI Radio/Simple_WiFi_Radio.ino
+9
-5
No files found.
examples/Simple WiFI Radio/Simple_WiFi_Radio.ino
View file @
3c38cba7
...
...
@@ -7,7 +7,7 @@
#define TFT_CS 22
#define TFT_DC 21
#define TP_CS 16
#define TP_CS 1
4 //1
6
#define TP_IRQ 39
#define SPI_MOSI 23
#define SPI_MISO 19
...
...
@@ -109,7 +109,10 @@ void write_streamTitle(String sTitle){
tft
.
setFont
(
Times_New_Roman43x35
);
tft
.
setTextColor
(
TFT_LIGHTBLUE
);
tft
.
setCursor
(
20
,
100
);
tft
.
print
(
sTitle
);
int
l
=
tft
.
writeText
((
const
uint8_t
*
)
sTitle
.
c_str
(),
100
+
150
);
// do not write under y=250
if
(
l
<
sTitle
.
length
()){
// sTitle has been shortened, is too long for the display
}
}
//**************************************************************************************************
// S E T U P *
...
...
@@ -131,10 +134,11 @@ void setup() {
cur_station
=
pref
.
getShort
(
"station"
);
cur_volume
=
pref
.
getShort
(
"volume"
);
}
WiFi
.
mode
(
WIFI_STA
);
WiFi
.
begin
(
ssid
.
c_str
(),
password
.
c_str
());
while
(
WiFi
.
status
()
!=
WL_CONNECTED
){
WiFi
.
begin
(
ssid
.
c_str
(),
password
.
c_str
()
);
delay
(
1500
);
delay
(
2000
);
Serial
.
print
(
"."
);
}
log_i
(
"Connect to %s"
,
WiFi
.
SSID
().
c_str
());
tft
.
begin
(
TFT_CS
,
TFT_DC
,
SPI_MOSI
,
SPI_MISO
,
SPI_SCK
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment