Search found 1293 matches

by Steve-Matrix
Thu Dec 18, 2025 6:37 pm
Forum: Feature Requests
Topic: Duplicate variables, as with macros
Replies: 2
Views: 51

Re: Duplicate variables, as with macros

Martin makes a good point and I would second using local variables where possible.

Also, I have added a rudimentary copy/paste for variables which should be available in the next core update of Flowcode v11.
by Steve-Matrix
Thu Dec 18, 2025 9:48 am
Forum: General
Topic: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
Replies: 4
Views: 100

Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling

I've just tried compiling an ATMEGA328 with PWM and it compiles without error for me. Make sure you are up-to-date with library updates. Also, it was tricky to see what the error is from a screenshot. In future, it is much easier to solve problems if the output is available in text (e.g. by attachin...
by Steve-Matrix
Wed Dec 17, 2025 9:14 am
Forum: General
Topic: Pic 12f1572 pwm set up
Replies: 6
Views: 173

Re: Pic 12f1572 pwm set up

I did a quick search on our old forum and found this post which may help you get started:
https://flowcode.co.uk/mmforums/viewtop ... 572#p81436
by Steve-Matrix
Tue Dec 16, 2025 9:37 am
Forum: Projects - Embedded
Topic: Measure the supply voltage of an AVR
Replies: 2
Views: 112

Re: Measure the supply voltage of an AVR

It should be easy to measure the Vcc within Flowcode using an analogue input and the voltage reference. A web search brought up this article and this article which might be of help.
by Steve-Matrix
Fri Dec 12, 2025 1:15 pm
Forum: Projects - Embedded
Topic: Flowcode 11 PWM
Replies: 5
Views: 188

Re: Flowcode 11 PWM

Glad the problem is solved. Perhaps the programmer you are using is setting the config for the device. I am not familiar with that programmer.
by Steve-Matrix
Fri Dec 12, 2025 9:21 am
Forum: Projects - Embedded
Topic: Flowcode 11 PWM
Replies: 5
Views: 188

Re: Flowcode 11 PWM

My first step in debugging this is to make sure a "1 second flasher" program can be downloaded successfully and works as expected. This rules out so many issues with timing and the toolchain in general. Once you have done that and proved that there is not a timing or reprogramming issue, t...
by Steve-Matrix
Fri Dec 12, 2025 9:17 am
Forum: General
Topic: using to switchs counting up and down on leds
Replies: 1
Views: 107

Re: using to switchs counting up and down on leds

You may need to explain what you are trying to achieve because I might be misunderstanding. You seem to be saying there are 2 switches which work as follows: Switch A on = count up 3 bits Switch A off = count down 3 bits Switch B on = count up 4 bits Switch B off = count down 4 bits But in this, wha...
by Steve-Matrix
Fri Dec 12, 2025 9:02 am
Forum: Bug Reports
Topic: AMG8833
Replies: 1
Views: 109

Re: AMG8833

Please post you project and the msg.txt file so we can see what the error is.
by Steve-Matrix
Wed Dec 10, 2025 6:21 pm
Forum: General
Topic: C Based Delay - with and Without Timers
Replies: 10
Views: 447

Re: C Based Delay - with and Without Timers

At 5MHz, 5 NOPs in a delay would be 1us delay.
by Steve-Matrix
Wed Dec 10, 2025 5:07 pm
Forum: General
Topic: Generate a siren sound
Replies: 1
Views: 153

Re: Generate a siren sound

You can probably change the PR2 value programmatically, but you may need to use C code in an icon. This post in our old forums might be of use:
https://flowcode.co.uk/mmforums/viewtop ... 047#p36047