![]() |
Forum Index : Microcontroller and PC projects : MM update to 4.5, now output error
![]() ![]() |
|||||
Author | Message | ||||
Tendor Newbie ![]() Joined: 14/12/2017 Location: AustraliaPosts: 6 |
Thanks Geoff! ![]() I have loaded V4.5C (Mono) and tested my code that contains the 'port' command. All appears to be working fine. Sincere thanks for taking the time to fix this. ![]() Here is my stepper motor drive code that now works on V4.5C (lost the indenting?) Regards, Rod. ''''''''''''''''''''''''' LSBpin=13: bits=4 wait=5 'mS out=&B0110: operate=&B0011 fwd=0:rev=1:direct=fwd For i=LSBpin To LSBpin+bits-1 SetPin i,dout Next stepper 400,fwd,wait End Sub stepper(how_many,direction,delay) Local i If direct<>direction Then operate=operate Xor &B1111 direct=Not(direct) EndIf For i=1 To how_many out=out Xor operate operate=operate Xor &B1111 Port(LSBpin,bits)=out Pause delay Next End Sub |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Great news, thanks. I will post it on my website. To post code use the CODE button at the top on the 'Post Reply' window. It retains indenting, spaces, special characters, etc. Geoff Geoff Graham - http://geoffg.net |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |