Search found 820 matches

by mnfisher
Sun Feb 18, 2024 10:33 am
Forum: Bug Reports
Topic: RTC component macro set for 12 hours does not work correctly
Replies: 2
Views: 51

Re: RTC component macro set for 12 hours does not work correctly

There is a lot of discussion on this on the Web..

So 11:59 pm (23:59) goes to 0:00 (it's a new day) for both 12 and 24 hour formats.

Martin
by mnfisher
Tue Feb 13, 2024 4:33 pm
Forum: General
Topic: C Code
Replies: 4
Views: 151

Re: C Code

Hi Amrat, Looks like you are trying to use Arduino IDE library code in Flowcode -and it's not going to work as is (would need to include the Arduino headers - but it might be a bit of a task) For blinking an LED - just use a 'single digital pin' property (say LED) and a boolean variable (on) and the...
by mnfisher
Sun Feb 04, 2024 6:58 pm
Forum: General
Topic: Arduino ISP Programming
Replies: 0
Views: 227

Arduino ISP Programming

I've been following a long running saga on the old matrix format - trying to get an atmega8 MCU running as an SPI slave. I managed to find an Mega8 - and fancied a play along - but first hurdle is programming it from Flowcode. I wanted to use an Arduino (in this case a Nano) programmed as an ISP. So...
by mnfisher
Tue Jan 30, 2024 9:08 am
Forum: General
Topic: Protocol j1587
Replies: 41
Views: 3143

Re: Protocol j1587

Try: Interrupt handler just capture one character (using GetChar - rather than GetByteArray) - don't attempt to process the data in the interrupt handler. Also - don't disable the interrupt in the handler - it should get called once per character (don't re-enable it in the loop in main either) You c...
by mnfisher
Wed Jan 24, 2024 10:54 am
Forum: Feature Requests
Topic: ESP32 interrupt for sampling MPU6886
Replies: 8
Views: 8882

Re: ESP32 interrupt for sampling MPU6886

It's easy to create a task - but it does take a line of C, xTaskCreate(FCM_Task, "TaskName", stk_size, params, priority, handle) - where stackize is 4096 (or more/less as needed) params - can be 0, priority can be 0 (or higher) and handle can be 0) I posted an example here = updates a ws2812 string ...
by mnfisher
Wed Jan 24, 2024 9:27 am
Forum: Feature Requests
Topic: ESP32 interrupt for sampling MPU6886
Replies: 8
Views: 8882

Re: ESP32 interrupt for sampling MPU6886

Why not create a seperate task (xTaskCreate) that reads the sensor and saves in a loop. Will need a minimum of 10ms delay per loop - but otherwise can run happily without blocking an interrupt.

Martin
by mnfisher
Tue Jan 16, 2024 2:28 pm
Forum: Projects - Embedded
Topic: Speeding up the ILI9488 SPI display (esp32)
Replies: 20
Views: 2871

Re: Speeding up the ILI9488 SPI display (esp32)

Thanks Ben, Does indeed compile now (what was I doing wrong?) - good improvement on speed (still a slideshow - keep pushing those improvements :-; ) Have doubts about my fullscreen 'clears' - the 'banding' might be an artefact of something else - though at the moment not sure what - black works AOK ...
by mnfisher
Mon Jan 15, 2024 8:43 pm
Forum: General
Topic: Aht10 with SSh1106 SPI!
Replies: 2
Views: 605

Re: Aht10 with SSh1106 SPI!

Hi Jorgen,

You can specify the number of digits after the point in FloatToString$

So .str = FloatToString$(value, 1) should do as you wish...

Martin
by mnfisher
Mon Jan 15, 2024 8:41 pm
Forum: Projects - Embedded
Topic: Speeding up the ILI9488 SPI display (esp32)
Replies: 20
Views: 2871

Re: Speeding up the ILI9488 SPI display (esp32)

Just tried a 'cube demo' and with the old component - this compiles and draws the cube (albeit (very) slowly). Then did a library update (of the ILI_9488 component) and can no longer compile: C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_IO.h:91:78: note: in definition of macro 'SET_PORT_MASK...
by mnfisher
Mon Jan 15, 2024 7:55 pm
Forum: General
Topic: Can not run UART
Replies: 5
Views: 786

Re: Can not run UART

You'll need to use an interrupt to catch the data - ReceiveString needs to have the right timing (and probably impossible without using an interrupt handler) There are several examples dotted around - try https://www.flowcode.co.uk/forums/viewtopic.php?f=5&t=1788&hilit=uart%5D for an example from Be...