Search found 1586 matches

by mnfisher
Sun Dec 28, 2025 6:59 pm
Forum: Feature Requests
Topic: FRAM COMPONENT
Replies: 25
Views: 2183

Re: FRAM COMPONENT

Thanks Ben - will take a look... This is where I got to - now with a Write String, Int and Long array macros - and their read equivalents. Tested on an Arduino (but also compiled for a PIC16F18877) using v10. Have tested the (and here using just 4 value writes) - Int and Long versions. And looks goo...
by mnfisher
Sat Dec 27, 2025 8:23 pm
Forum: Projects - Embedded
Topic: SOLVED: Reading AS5600 registers with ARM using I2C Transactions
Replies: 7
Views: 206

Re: Reading AS5600 registers with ARM using I2C Transactions

Glad you are up and running - I'd just seen the 'still having issues' message above :-)

Martin
by mnfisher
Sat Dec 27, 2025 7:24 pm
Forum: Projects - Embedded
Topic: SOLVED: Reading AS5600 registers with ARM using I2C Transactions
Replies: 7
Views: 206

Re: Reading AS5600 registers with ARM using I2C Transactions

Can you post your code (or a section thereof) - or look at the i2c trace using a logic analyser?

Martin
by mnfisher
Sat Dec 27, 2025 3:27 pm
Forum: Projects - Embedded
Topic: SOLVED: Reading AS5600 registers with ARM using I2C Transactions
Replies: 7
Views: 206

Re: Reading AS5600 registers with ARM using I2C Transactions

Hi Brendan, That should be something like: TransactionInitialise(addr) // addr is 7 bit address of device Then: .buf[0] = 0x0b // Register to read buf is an array of bytes (one or more!) TransactionWrite(.buf, 0x8001) // Writes addr (set in initialise) and 0x0b - restart rather than stop... Transact...
by mnfisher
Thu Dec 25, 2025 10:14 am
Forum: General
Topic: Happy Christmas
Replies: 6
Views: 258

Re: Happy Christmas

That's the engineering approach.

Code: Select all

   
 Macro Pub()
     While(.StillThirsty)
          .StillThirsty = DrinkMore()
 
Getting home handles itself 🥳


Happy Christmas Everyone 🎅

Martin
by mnfisher
Wed Dec 24, 2025 8:56 pm
Forum: General
Topic: Happy Christmas
Replies: 6
Views: 258

Re: Happy Christmas

Thanks for the kind words.. Blushing more than slightly - and I guess that Flowcode makes programming fun - so many thanks to the Matrix team. We try (speaking for Iain as well) - and help a little when we can and (speaking for myself) - try hard not to mess things up for folk too much. Everyone has...
by mnfisher
Tue Dec 23, 2025 8:45 pm
Forum: Feature Requests
Topic: FRAM COMPONENT
Replies: 25
Views: 2183

Re: FRAM COMPONENT

Thanks Ben,

Is the component source on the wiki yet? - I did have a brief look and didn't find it...

Martin
by mnfisher
Sun Dec 21, 2025 5:53 pm
Forum: General
Topic: Raspberry Pi program launcher
Replies: 6
Views: 295

Re: Raspberry Pi program launcher

Yes - a Linux (or origianally Unix) thing. Normally - prog1 (for example) would run prog1 and wait for it to finish. The & runs it and returns immediately (so the program runs as a background task) - I think ps -al shows you all the tasks running ( or you can use top) If you get the task id (usi...
by mnfisher
Sun Dec 21, 2025 3:44 pm
Forum: General
Topic: Raspberry Pi program launcher
Replies: 6
Views: 295

Re: Raspberry Pi program launcher

Hi Bob,

You can run multiple programs by ending the line with '&'

For example

Prog1&
Prog2&
Prog 3&

Would run all three programs...

Martin
by mnfisher
Sun Dec 21, 2025 11:00 am
Forum: Feature Requests
Topic: Duplicate variables, as with macros
Replies: 6
Views: 337

Re: Duplicate variables, as with macros

Hi Brendan, Sorry - I'd just been looking at a (very) large program with NO locals and my head hurt. Use of globals for 'state' storage is a necessary on MCUs for sure - although it's still somewhat contentious - Id recommend 'The Pragmatic Programmer' and 'Clean Code' - both of which are very reada...