Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:28 24 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : (MM-DM) Interesting code

Author Message
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 07:10am 13 Dec 2011
Copy link to clipboard 
Print this post


10 IF PIN(0)=1 THEN PIN(0)=1 ELSE PIN(0)=0
20 GOTO 10


Works on an MM, need to fix it on the DM, as it has a bug.

And what does it do?

Cheers Don... Edited by donmck 2011-12-14
https://www.dontronics.com
 
swoodgate

Newbie

Joined: 24/11/2011
Location: Australia
Posts: 14
Posted: 07:39am 13 Dec 2011
Copy link to clipboard 
Print this post

It controls the front panel LED according to the Maximite manual and it seems like it’s meant to blink this LED but I think it should say:


10 IF PIN(0) THEN PIN(0)=0 ELSE PIN(0) = 1
20 GOTO 10


Best regards

Steve
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 07:40am 13 Dec 2011
Copy link to clipboard 
Print this post

  swoodgate said   It controls the front panel LED according to the Maximite manual and it seems like it’s meant to blink this LED but I think it should say:


10 IF PIN(0) THEN PIN(0)=0 ELSE PIN(0) = 1
20 GOTO 10


Best regards

Steve


Close, but no cigar Steve.

Cheers Don...Edited by donmck 2011-12-14
https://www.dontronics.com
 
swoodgate

Newbie

Joined: 24/11/2011
Location: Australia
Posts: 14
Posted: 07:50am 13 Dec 2011
Copy link to clipboard 
Print this post

Now I'm going to have to go home and try it!
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 07:56am 13 Dec 2011
Copy link to clipboard 
Print this post

  swoodgate said   Now I'm going to have to go home and try it!


Sorry Steve.

Cheers Don...
https://www.dontronics.com
 
rhamer
Senior Member

Joined: 06/06/2011
Location: Australia
Posts: 174
Posted: 08:32am 13 Dec 2011
Copy link to clipboard 
Print this post

  donmck said  

10 IF PIN(0)=1 THEN PIN(0)=1 ELSE PIN(0)=0
20 GOTO 10


Works on an MM, need to fix it on the DM, as it has a bug.

And what does it do?

Cheers Don...


Causes a rip in the space time continuum......
Rohan Hamer
HAMFIELD Software & Hardware Solutions

Makers of the Maximite Expander.

http://www.hamfield.com.au
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 09:06am 13 Dec 2011
Copy link to clipboard 
Print this post

Sets the Power LED (on or off) to the state of the Bootload button.

 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1344
Posted: 09:52am 13 Dec 2011
Copy link to clipboard 
Print this post

Just tried on the DM here but sworry can't give the answer away....

Also just did on the SM1 and the answer was too easy......
 
swoodgate

Newbie

Joined: 24/11/2011
Location: Australia
Posts: 14
Posted: 10:40am 13 Dec 2011
Copy link to clipboard 
Print this post

That'll teach me to read all the manual before posting a reply.
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 12:54pm 13 Dec 2011
Copy link to clipboard 
Print this post

  swoodgate said   That'll teach me to read all the manual before posting a reply.


Yes, was in the manual.

Looks like the streak knives, and the world trip, goes to Anthony.

My thanks to Ken Segler for the code snippet. (After a few questions were asked)

Cheers Don...Edited by donmck 2011-12-14
https://www.dontronics.com
 
marcwolf

Senior Member

Joined: 08/06/2009
Location: Australia
Posts: 119
Posted: 12:01am 14 Dec 2011
Copy link to clipboard 
Print this post

Streak knives?

Is that some sort of protection against streakers?

Take Care
Dave
Coding Coding Coding..
Keep those keyboards coding..
RAW CODE!!!!!
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 12:02am 14 Dec 2011
Copy link to clipboard 
Print this post

  marcwolf said   Streak knives?

Is that some sort of protection against streakers?

Take Care
Dave


...///... there goes one now.

Cheers Don...

https://www.dontronics.com
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024