I've been anticipating the combination of more I/Os and the ease of development of Annex.
Struggling to find any info on using a micro-SD card module.
I successfully flashed my ESP32 D1 Mini, but don't see how to set the IP address before flashing to something other than 192.168.4.1. How is that done now?
d$ = FILES.DIR$("/html")
d$ = FILES.DIR$
d$ = FILES.DIR$(“/html/ex*.html”) ‘ returns all the files starting with the “ex”
d$ = FILES.DIR$(“/html/list.*”) ‘ returns all the files named list.xxx
Now - having connected and SD card module as recommended - should the files on the card show up automatically or do I have to specify a different path?
Cannot spot any reference in help for SD card.
Now - having connected and SD card module as recommended - should the files on the card show up automatically or do I have to specify a different path?
Cannot spot any reference in help for SD card.
Setup below
Please send me a link to the download area.
Hi Cicciocb,
I would be happy to participate in the ESP32 testing
Could you send the link?
Barry
You can simply use the serial port 2
dim portA(8) = 26,39,35,33,34,5,99,13
'dim portA(6) = 27,25,32,12,17,16
print date$,time$
wlog date$,time$
iPort=7
wlog "pin",portA(iPort),tempr$(portA(iPort))
npins=8 ' 8
for i = 1 to npins
wlog i,portA(iPort),tempr$(portA(iPort),i)
next i
wlog "DONE"
01/12/19 14:16:42
pin 13 28ea4379a2160379,283e8a79a21603b0,28c96979a21603d3,28190000242e00c4,28ff641e39badd74,28ff641e3983a252,28ff641e1dc878c9
1 13 26.5
2 13 28.125
3 13 27.6875
4 13 24.625
5 13 28.375
6 13 28.25
7 13 28.1875
8 13 -127
DONE
Create soundoutputPlayer on core 1i2s begin1mp3 stopped
So I suspected that this direct sound output with the internal DAC would also work with a simple ESP32 module (NodeMCU) and an active loudspeaker on GPIO25 ...and found just that thought confirmed in the helpfile. But if I switch to the internal channel with "play.setup 0" (+ a reboot) and try a "PLAY.SPEAK MYTEXT$" or "PLAY.MP3 MYMP3$ ", then I can't see or hear an analog audio signal at the GPIO25. There is only the digital signal (I2S???) and in the log I see the following which still indicates I2S usage:Create soundoutputPlayer on core 1i2s begin1mp3 stopped
@Peter: Funnily enough, I just recently discovered that TOF device, couldn't believe it is also offered with M5stacks. I was looking at using B4R (BASIC for Arduino) to use their library. Would be super cool if Annex could handle it though.
Is there any way of finding the space available for files in the internal memory?
With an empty (apart from a single program) 8GB SDcard, flashfree shows 7939719168 bytes.After saving 1000 tiny files this drops by 3,2768,000 bytes i.e 32 kB per file.
Create soundoutput
Program Running
playing FireballMail.mp3 18:30:01
Player on core 1
i2s begin
1
mp3 stopped
pause 1000
wlog "playing FireballMail.mp3",time$
print "playing FireballMail.mp3",time$
play.mp3 "/FireballMail.mp3"
do
loop
As it plays in background, I omitted the loop
play.setup 0
play.volume 80
a$="/x.mp3"
if file.exists(a$) then PLAY.MP3 a$
'PLAY.NETWORKS"http://91.121.159.124:8000/eko-des-garrigues-128k.mp3"
end
play.setup 0pause 1000wlog "playing cherokeeshuffle.mp3",time$print "playing cherokeeshuffle.mp3",time$play.volume 80a$="/cherokeeshuffle.mp3"
if file.exists(a$) then PLAY.MP3 a$
'play.mp3 "/cherokeeshuffle.mp3"end