I'm very new to FlowCode (2 days in) - so this is hopefully a simple problem?
After trying the usual blinkies and a DS18B20 and then a DS3231 RTC with success (I'm liking this even though I had to download a new component for the RTC to get it to work) I then tried to get some more generic i2c comms to work.
Actually I tried an i2c LCD display but as the ones to hand had a PCF8574 port expander and I couldn't easily find a component to handle this I thought I would try something simpler.
So I tried a BlinkM - and failed completely. It is surely something obvious I am missing but after several hours of head scratching I am none the wiser.
Running on an Arduino nano
The BlinkM is on address 0x9 (and this is set into blinkm as initial value)
This mimics the Arduino code
Code: Select all
Which stops the BlinkM running it's startup demo (same hardware) as expected.
Adding a blink (loop and toggle pin 13) after the i2c comms reveals that the code is crashing - it never reaches the blinky) - I have tried using channel 1 / software at all speeds (including the optimistic ones)
Code is running on Arduino Nano with i2c connected to A4/A5 and the BlinkM gives no reply to the command ('o') which should stop current script. FlowCode is v7.
Thanks for any pointers.