|
Forum Index : Microcontroller and PC projects : AUTORUN
| Author | Message | ||||
| romba6 Newbie Joined: 04/07/2020 Location: United KingdomPosts: 38 |
I have a small program autorun.bas (below) to clear my I2C units. I have OPTION AUTORUN ON print "Reset I2C bus" i2c open 100,1000 i2c write &h20,0,1,255 i2c write &h21,0,1,255 i2c close print "Finished" When I power up or hit RESET button, the response is :- Reset I2C bus Finished print "Finished"'|7 If I just run the program on its own it's fine. Where does the last line come from? What am I doing wrong? Version = CMM2V5.05.05RC9.bin |
||||
| twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1769 |
Hi romba6, as s first step I would update to the latest firmware update. RC9 means "Release Candidate 9" the release version is CMM2V5.05.05. I would this version test: https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=12998&LastEntry=Y#158101#158101. For me - on the first glance - it looks like a minor old bug. Without your I2C device I can't fully test your code. Michael ‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ... |
||||
TassyJim![]() Guru Joined: 07/08/2011 Location: AustraliaPosts: 6606 |
I don't think it should be needed but it is a good idea to end your program with END It fixed the problem for me. Jim Edited 2020-11-01 12:40 by TassyJim VK7JH MMedit |
||||
| romba6 Newbie Joined: 04/07/2020 Location: United KingdomPosts: 38 |
Thank you Jim - it fixed the problem for me too !!! What threw me was the fact that the program works perfectly when run on its own but not in AUTORUN |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |