ST7735

Use this section to discuss your embedded Flowcode projects.
mnfisher
Valued Contributor
Posts: 938
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: ST7735

Post by mnfisher »

IMG_20220225_203357.jpg
IMG_20220225_203357.jpg (95.29 KiB) Viewed 2744 times
With PICKIT 3 providing the power..

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: ST7735

Post by WingNut »

I'm not sure how I can do that. The 18F2620 doesnt have a 32MHz option

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: ST7735

Post by mnfisher »

You'll need to set the clock speed etc in program options... Whatever it runs at (19MHz??) - it will affect the delays

Looking at the CAL_SPI TransactionWriter code - it just call Master_byte multiple times - so I can't see why the transaction version doesn't work - but tried it again and it doesn't :-(

Sorted - It wasn't working with transactions because the buffer in Initialise was too small (I'd initially left out the gamma adjustments which needed 16 bytes...)

Phew
st7735 PIC16LF15313fcfx.fcfx
(59.8 KiB) Downloaded 87 times

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: ST7735

Post by WingNut »

Is there an ILI9163 display available anywhere. This is still the best option at the moment as its the only one which does anything for me. When I search all i can find is the same display from different sources which state st7735/ILI9163 which are clearly not the same ( or are they as slow as each other)
N

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: ST7735

Post by mnfisher »

Just trying to get going with a PIC18F27J13 - but I can't compile for it:
16405: (1504) the PIC18 extended instruction set was enabled but is not supported by this compiler
Anyone any ideas on this?

#pragma config XINST = OFF - seems one possibility - but where to add ?

Martin

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: ST7735

Post by WingNut »

Ive had that before - just disabled it in project options

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: ST7735

Post by mnfisher »

I see it - thanks..

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: ST7735

Post by WingNut »

NP
for info, Ive added a thermistor into my circuit and an extra line to display the temperature and now the screen takes 12 seconds to update the data versus the previous 6 seconds - still using the ili9163 component. Is this problem more pic related?

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: ST7735

Post by mnfisher »

Seems - very slow... Can you run a 1s flasher correctly?

I've got a LPLC PIc18 board from a Kickstarter (back in 2014!) - and can't find any docs on it (pinouts etc) - so it is going to take a bit of play to get it working.. So far - I can program it :-) and have a 1Hz flasher running -but seems to be using a 4MHz clock (should be 48MHz) - so I've a way to go yet...

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: ST7735

Post by WingNut »

So I stuck a led in and a 5 second flash in 3 different locations -1 at the very start of the program, one immediately after initialising the display and one in the main loop to see if I could tell where the issue lay.
At 40mhz the led is on full time so i changed to 1mhz and the first stage flashes at 1 second (5 times). The next stage takes a few seconds to start flashing so the initialisation is slow. It then flashes for 1 second (5 times). The next stage in the main loop flashes 5 times at 1 second but the display update remains the same (plus the delays)

Post Reply