Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
amforth [2007-07-09 19:20] – external edit 127.0.0.1amforth [2007-07-24 16:10] nik
Line 22: Line 22:
 </file> </file>
    
 +
  
 ==== hello world (aka, blinking an LED) ==== ==== hello world (aka, blinking an LED) ====
Line 91: Line 92:
 <file> <file>
 : blink -- , blink PORTC5 for 100ms 20 35 c! 64 ms 0 35 c! 64 ms ;  : blink -- , blink PORTC5 for 100ms 20 35 c! 64 ms 0 35 c! 64 ms ; 
-</file>**(64 ms)**<code> +</file>**(64 ms)**
-  +
-</code>+
  
 NOTE: 100 is 0x64 in hex, so  pauses for 100ms. NOTE: 100 is 0x64 in hex, so  pauses for 100ms.
Line 100: Line 99:
 then a word to blink multiple times: then a word to blink multiple times:
      
- 
 <file> <file>
 : blinks n -- , blink n times 0 do blink loops ;  : blinks n -- , blink n times 0 do blink loops ; 
-</file>so now +</file> 
- + 
 +so now
  
 <file> <file>
Line 159: Line 158:
 </file> </file>
    
 +
  
 ==== backing up ==== ==== backing up ====
Line 180: Line 180:
 ---- ----
  
-[[/media/amforth-upload.py.txt]] 
-<file> 
  
-</file>+
 ---- ----
 Libarynth >  Libarynth Web > AmForth r4 - 09 Mar 2007 - 11:56 Libarynth >  Libarynth Web > AmForth r4 - 09 Mar 2007 - 11:56
-----#!/usr/bin/env python+---- 
 + 
 +==== amforth-upload.py ==== 
 +<file> 
 + 
 + 
 +#!/usr/bin/env python
  
 # amforth-upload.py # amforth-upload.py
Line 373: Line 377:
 if __name__ == "__main__": if __name__ == "__main__":
  main(sys.argv[1:])  main(sys.argv[1:])
-</pre>+ 
 +</file>
  • amforth.txt
  • Last modified: 2007-07-24 16:10
  • by nik