Search found 80 matches: supplementary

Searched query: supplementary

by Steve-Matrix
Tue Oct 14, 2025 8:49 am
Forum: General
Topic: Global C-Code
Replies: 2
Views: 63

Re: Global C-Code

... and put the code of that function into that icon, matching the parameters of your C function with the parameters of the macro. Or you can just use supplementary code. There was a discussion about this recently on this forum. A search for the word "supplementary" will bring that up: https://www.flowcode.co.uk/forums/search.php?keywords=supplementary
by Alan_37
Mon Oct 13, 2025 10:57 pm
Forum: General
Topic: Global C-Code
Replies: 2
Views: 63

Global C-Code

Hello

Is there a way to make a C block function Global ( can be called from all Macros ), other than putting it in the supplementary code ?
or can we just add a C file to the supplementary code?

If not, I think it should be possible to create a component that lets us add a C file
by Steve-Matrix
Fri Sep 26, 2025 10:06 am
Forum: Tips & Tricks
Topic: Improving supplementary code editing
Replies: 1
Views: 2561

Re: Improving supplementary code editing

Thanks, Martin. I've done that in the past and is useful when you have supplementary code that is being worked upon. To add to your post, the "#include" statements are relative. This means if the Flowcode project moves to a different folder on your ...
by mnfisher
Thu Sep 25, 2025 8:50 pm
Forum: Tips & Tricks
Topic: Improving supplementary code editing
Replies: 1
Views: 2561

Improving supplementary code editing

Supplementary code is a useful feature if you need to add a little more C to your flowchart than is comfortable in a code block. However - editing it is a bit more awkward than a normal Flowcode macro - for example - you can't ...
by mnfisher
Sat Sep 20, 2025 10:22 pm
Forum: Tips & Tricks
Topic: ESP32 Speed Increase
Replies: 0
Views: 517

ESP32 Speed Increase

... print effect) - and the different ISRs can be selected by toggling the marked blocks. To create an ISR in IRAM - copy the code (use view code) to supplementary code and add a header with the same signature to the definitions and headers block. To the code definition - add IRAM_ATTR For example ...
by mnfisher
Fri Sep 19, 2025 9:26 pm
Forum: Projects - Embedded
Topic: I2C Probe - A community project
Replies: 6
Views: 4884

I2C Probe - A community project

... However - on adding pin interrupts for SDA and SCL - I found it could only read i2c at 1k. I was somewhat disappointed. So - I moved the ISRs to supplementary code (using the view code option to get the C) - and stored them in IRAM - I also modified the setup for these to allow for this. I changed ...
by mnfisher
Sat Aug 09, 2025 8:12 am
Forum: General
Topic: ESP32 How to reset watchdog timer (WDT)
Replies: 7
Views: 3666

Re: ESP32 How to reset watchdog timer (WDT)

In the task (using NULL in task_wdt_add uses the current task) can you use

#include <esp_task_wdt.h> (in supplementary code)

esp_task_wdt_reset(); (in task)

Which would need to be called at 'intervals' of < wdt timeout.

Martin
by mnfisher
Tue Aug 05, 2025 1:27 pm
Forum: General
Topic: Dual Core dsPICs - anyone tried these?
Replies: 2
Views: 955

Re: Dual Core dsPICs - anyone tried these?

... void __attribute__((core(1))) slave_core_task(void) would run slave_core_task on core_1 The easiest way to (try to) do this in FC would be to use supplementary code - and define for example: void __attribute__((core(1))) slave_core_task(void) { FCM_Core1_Task(); } Then call slave_core_task(); ...
by Steve-Matrix
Mon Jun 16, 2025 5:44 pm
Forum: General
Topic: [SOLVED] using Arduino libraries in Flow code. Few questions about Flowcode functinalities
Replies: 3
Views: 941

Re: Few questions about Flowcode functinalities

... convert everything. A C-code icon is a flowchart icon within your flowchart. You can add C-code statements there. You can also add C-code to the Supplementary Code boxes. This is usually used for larger blocks of code - e.g. functions that you want to call from within your flowchart. Code here ...
by ta9reefa
Mon Jun 16, 2025 4:59 pm
Forum: General
Topic: [SOLVED] using Arduino libraries in Flow code. Few questions about Flowcode functinalities
Replies: 3
Views: 941

Re: Few questions about Flowcode functinalities

... this mean the C-code icon would need to compile/run before the main flowchart/macro? otherwise, the library declarations wouldn't work. Use supplementary code option in projects options (I forgot to ask about this one) To use supplementary code in projects options , would it just work to ...