Search found 875 matches

by mnf
Tue Dec 01, 2020 7:58 pm
Forum: Flowcode V8
Topic: Tough question: Brexit...
Replies: 2
Views: 61

Re: Tough question: Brexit...

- nobody knows. Or if they do they are not saying. What a mess. Sometimes the 'wisdom of crowds' leaves a little to be desired. I work n a post-office and it might cause chaos.. We might have to go through it all over again with Scotland and Indyref2 :cry: - but I think there are far more important ...
by mnf
Mon Nov 30, 2020 11:01 pm
Forum: User Components
Topic: GLCD Bitmap Drawer for more than 1 Object
Replies: 7
Views: 232

Re: GLCD Bitmap Drawer for more than 1 Object

Hi, In the meantime - I did this ST7789 code - here -https://www.matrixtsl.com/mmforums/viewtopic.php?f=77&t=22377&p=104068#p104068 - which has a 'bitmap' copy. For monochrome displays you'd just need the 1 bit version. This is (hopefully) a bit easier to follow than reverse engineering the FC compo...
by mnf
Sun Nov 29, 2020 7:31 pm
Forum: Flowcode V8
Topic: 96x32 OLED SSD1316 I2C Supported?
Replies: 3
Views: 488

Re: 96x32 OLED SSD1316 I2C Supported?

If you send me one of the displays I'll have a go....
Just been doing a st7789 (spi) display - which works (at least on some displays :? )
The source for the ssd1306 has been published and it shouldn't be too hard to modify for the different resolution..

Martin
by mnf
Sat Nov 28, 2020 8:51 pm
Forum: Bug Reports
Topic: ATTiny85 SPI
Replies: 1
Views: 31

ATTiny85 SPI

On the ATTiny85 (and possibly other ATTinies - not checked) SPI (USI) doesn't work in hardware mode. With 'Channel1' - SCL gives a clock signal but no data is output on MOSI. Using 'Software' (and all other things the same) - MOSI outputs data.. Note that it's probably not much slower (403kHz / 410k...
by mnf
Fri Nov 27, 2020 9:31 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Phew - not much progress. Messed up one display trying with resistors.. Just had a play with with an ATTiny85 (which should run at 3v3) - but although SCL seems good, there doesn't seem to be any signal on MOSI. So no joy. Anyone used SPI on the ATTiny85? Took a long time to get a USBasp programmer ...
by mnf
Thu Nov 26, 2020 6:51 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Not yet - it's a very nice display.... Easy to work with too when it's working :?

I'll hopefully have a bit more time to play over the weekend - and I've just received a 3v3 usb-tiny (alike) from Bangood...

Martin
by mnf
Wed Nov 25, 2020 9:19 pm
Forum: Flowcode V8
Topic: Programming to Mega 2560 - No Permissions
Replies: 4
Views: 74

Re: Programming to Mega 2560 - No Permissions

Sounds like the upload is failing for some reason.

It's getting com 6 - is this the correct port ? (Good to check - see another thread about FC sometimes attempting to write to the string com port)

Martin
by mnf
Wed Nov 25, 2020 9:16 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

I wired a working display with 2k2 resistors on all the data lines - signals looks ok on dc and SDA but clock doesn't work - I checked with oscilloscope.. either signal is too fast for a resistor reduction, it or the resistor is faulty (maybe my soldering?) No joy - yet.. the 'newer' type displays I...
by mnf
Wed Nov 25, 2020 8:26 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Today I'll try with resistors..
I can't get the new displays to display anything - I tried fast library, adafruit library too without success - maybe my soldering? Can you point me to the examples you are using.
Maybe some differences - there seem to be 3 versions in the datasheets..

Martin
by mnf
Tue Nov 24, 2020 9:10 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

And I think I've found the problem.. There seem to be'variants' of the display. I have two, which I will call the old displays - the screen print on the back is poor quality and some 'new' displays with much better printing. The 'old' displays work perfectly, and the new ones not at all. I tried two...
by mnf
Tue Nov 24, 2020 7:14 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

See PM for suggestion...
by mnf
Mon Nov 23, 2020 11:39 pm
Forum: Flowcode V8
Topic: Programming to Mega 2560 - No Permissions
Replies: 4
Views: 74

Re: Programming to Mega 2560 - No Permissions

Hi Bill, The Uno is one of the free targets - so yes, you'd need to buy the Arduino pack to use the Mega... First, though, is it possible to 'trim' your code to fit. (I once went to a lecture where it was asserted that all programs can be optimised by (at least) one instruction - this of course lead...
by mnf
Mon Nov 23, 2020 10:32 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

A frustrating evening.. Nano ran happily all day (and display restarted after a power cut). Slightly worryingly - my bedroom hit a 'peak' of 12.6C. Toasty... But my attempts to get a 3v3 Micro (Pro) running failed... Might be easiest to use an ATTiny85 running at 3.3v - but my USBTiny is v1 and 5v o...
by mnf
Mon Nov 23, 2020 11:05 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

I've set up the thermometer (and added humidity) on a long term test for today... Tonight I'll try with a 3v3 MCU... Try adding a smoothing capacitor across VCC/GND? I don't think a Nano is significantly different to a Uno - both should be able to supply 50ma on the 3.3v pin (and possibly up to 150m...
by mnf
Sun Nov 22, 2020 11:08 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

As a thought - the display seems'sensitive' to fluctuations in power - if I touch the 3.3v connector then it often make the display fail. Perhaps s capacitor and maybe a separate 3.3v supply (not sure how much per a Uno 3.3v pin can supply?)

Martin
by mnf
Sun Nov 22, 2020 10:05 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

disp.jpg Almost done now.... Something odd that it's not starting reliably for you.. Seems rock solid on a Nano... I did a quick thermometer with a DHT22 - but missed on the 'degrees' symbol. Martin st7789.fcfx Just with temp added (DHT22 on d2) - still displays rainbow, lines and text before swapp...
by mnf
Sun Nov 22, 2020 5:48 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Hmm - I've just downloaded on a different computer and all seems well. Can you make previous version work still?

Martin
by mnf
Sun Nov 22, 2020 5:01 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Wiggle those wires - you should be getting rainbows, lines and text too...

Martin
by mnf
Sun Nov 22, 2020 10:50 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Hmm - Orientation is the tricky one.... Still some more to test.. I added some text routines. Print - is slower, but allows the text to be scaled and - it 'wraps' - so it goes to a new line if the text overflows the current line.... Not drawing the background (for example on a clear display) saves s...
by mnf
Sat Nov 21, 2020 6:33 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Maybe - but a way to go before that's a thing...

What features do you need / would you like?

Need to get text working..
by mnf
Sat Nov 21, 2020 4:59 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Hooray, glad to hear it's working!

I've just worked out the real reason the bitmaps are reversed - my FC is making up for deficiencies in the python script - which reverses the lines (vertically) and also horizontally...

Next version soon...
by mnf
Sat Nov 21, 2020 9:53 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Well that's the left to right issue sorted for 1 bit bitmaps... Note that bitmaps are stored as dwords (32bit) - so rows are always a multiple of 32 bits long. This means it can be quite wasteful of memory (so a 8x8 monochrome bitmap will use 32 bytes (rather than 8 )) The code here - uses bitmap fo...
by mnf
Sat Nov 21, 2020 12:03 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Sounds like your having good progress. - that's when Jorgen's display starts working too..... :D I added a 'blit' bitmap to display. Here are the 1 and 4 bit versions and a Python script that generates the array assignments for the data and colour table from a bitmap file (need a better way to do u...
by mnf
Thu Nov 19, 2020 11:30 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

Another 'oddity' I meant to check in the datasheet..

The fast library - defines CASET and RASET to be 0..240 (for the whole display) - whereas I would expect this to be 0..239

Any thoughts/guidance on this ?

Martin
by mnf
Thu Nov 19, 2020 8:34 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 67
Views: 1354

Re: Fast display ST7789!

One possible change needed - I changed the parity of SCL... To get things working!

Martin