-->
Page 3 of 6

Re: ESP receiving internet radio

PostPosted: Sun Apr 24, 2016 1:59 pm
by martinayotte
Hi @Edzelf,

I've decided to give it a try, only with VS1052, no TFT.
But unfortunately, I've faced some exception-9 crashes. :o
Digging further, I found the glitch :

Code: Select all/**
 * Note:
 *  data need to be aligned to 32Bit
 *  or you get an Fatal exception (9)
 * @param data uint8_t *
 * @param size uint32_t
 */
void SPIClass::writeBytes(uint8_t * data, uint32_t size) {


... and, effecttively, the buffer wasn't aligned ...
So, I've changed that, and now it is working ! :)

Here is the fix in handlebyte() :

Code: Select all<   static uint8_t  buf[32] ;                            // Buffer for chunk
---
>   static __attribute__((aligned(4))) uint8_t  buf[32] ;                            // Buffer for chunk

Re: ESP receiving internet radio

PostPosted: Tue Apr 26, 2016 1:40 am
by reaper7
@Edzelf - which one TFT_ILI9163C library You are using in this project? any link?
You wrote about changes inside TFT_ILI9163C.h and TFT_ILI9163C.cpp, can You explain this?

Some time ago I found TFT_ILI9163C lib by sumotoy:
https://github.com/sumotoy/TFT_ILI9163C ... ease-1.0r6
and I use it on my other project with success
but I have problem with display text from ESP-radio...(text overlap)

EDIT:
text overlap -> this is problem with lib which I use:
https://github.com/sumotoy/TFT_ILI9163C/issues/33

Re: ESP receiving internet radio

PostPosted: Sat Apr 30, 2016 10:57 am
by danbicks
Hi @Edzelf,

Man you are a star, this is truly wicked. I have changed the default station list and have all my banging house and reggae stations on tap :)

Have you thought about implementing bass and treble EQ adjustment and a snazzier web interface?

Superb work mate, with Martins mod the radio streams with no crashing truly awesome :)

Dans

Re: ESP receiving internet radio

PostPosted: Sat Apr 30, 2016 11:00 am
by danbicks
Forgot to include that I have this running on a Wemos Mini D1,

Just about to add I2C Oled instead of TFT for a simple player.

Cheers

Dans