SSD1306 I2C with Pic16f1937!

For general Flowcode discussion that does not belong in the other sections.
mnfisher
Valued Contributor
Posts: 1133
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 114 times
Been thanked: 596 times

Re: SSD1306 I2C with Pic16f1937!

Post by mnfisher »

Jorgen's example tweaked to use rows instead of y co-ordinates.

Martin

▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▓▒▒▓▒▒▒▒
▒▒▒▒▓▒▒▓▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒
▒▓▒▒▒▒▒▒▒▒▓▒
▒▒▓▓▓▓▓▓▓▓▒▒
▒▒▒▒▒▒▒▒▒▒▒▒

Still trying to shake the image of Iain in the 'pink'... Don't have nightmares (or sunburn)
Attachments
Martins SSD1306 Component Test.fcfx
(14.28 KiB) Downloaded 14 times

jgu1
Posts: 681
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 569 times
Been thanked: 146 times

Re: SSD1306 I2C with Pic16f1937!

Post by jgu1 »

Martin the last .FCPX doesnt work, again spaceproblem, so I went back :)

mnfisher
Valued Contributor
Posts: 1133
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 114 times
Been thanked: 596 times

Re: SSD1306 I2C with Pic16f1937!

Post by mnfisher »

Which demo did you try - yours has quite a few strings..

mnfisher
Valued Contributor
Posts: 1133
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 114 times
Been thanked: 596 times

Re: SSD1306 I2C with Pic16f1937!

Post by mnfisher »

The Flowcode component was back. Very odd. Deleted again.

It's all very odd - gone back to only working at 100kHz and then only for a brief while. Gremlins? Rod Serling is sitting in the corner and something very odd is about to occur?

Then - I found and swapped to a 64 pixel display. One of the jumpers 'failed'. (Should have build Iain's 'jumper tester')
The 64 pixel display needs 'interlaced' - so added that. Mines also needs inverted set to true (in the FC component - what I have as 'inverted' is 'if 1' (so always))
Still locking up at 400kHz - I might go for a little lie down in a dark place...

So - working a (rather dim) 64 * 128 pixel display with 8 rows of text too..

Try this:
SSD1306_Min.fcpx
(4.78 KiB) Downloaded 15 times

mnfisher
Valued Contributor
Posts: 1133
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 114 times
Been thanked: 596 times

Re: SSD1306 I2C with Pic16f1937!

Post by mnfisher »

Just tested on an esp32 - i2c running at 1MHz works okay so not sure why Uno is only working at 100kHz :-(

jgu1
Posts: 681
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 569 times
Been thanked: 146 times

Re: SSD1306 I2C with Pic16f1937!

Post by jgu1 »

The last one doesn´t work correctly. Very small font x and y doesn´t work. Martin I use the first you made, this work for me ;)

Jorgen
Attachments
SSD1306_Min.fcpx
(4.34 KiB) Downloaded 11 times

mnfisher
Valued Contributor
Posts: 1133
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 114 times
Been thanked: 596 times

Re: SSD1306 I2C with Pic16f1937!

Post by mnfisher »

Check the value of interlaced (new property) - off for 32 pixel display on for 64...

y is now row 0..3 (or 0..7)

jgu1
Posts: 681
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 569 times
Been thanked: 146 times

Re: SSD1306 I2C with Pic16f1937!

Post by jgu1 »

No change, no matter what setting I use in the config?

I will use the one which working :)

Jorgen

mnfisher
Valued Contributor
Posts: 1133
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 114 times
Been thanked: 596 times

Re: SSD1306 I2C with Pic16f1937!

Post by mnfisher »

🙄 Would like to get you up and running with the VU meter too..

Maybe revisit it later..

Post Reply