Popular recipes tagged "amiga" but not "file" and "windows"http://code.activestate.com/recipes/tags/-file+amiga-windows/2013-08-09T18:15:09-07:00ActiveState Code RecipesA Simple Clock, Well Maybe Not That Simple... (Python)
2013-08-09T18:15:09-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578633-a-simple-clock-well-maybe-not-that-simple/
<p style="color: grey">
Python
recipe 578633
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/big/">big</a>, <a href="/recipes/tags/clock/">clock</a>, <a href="/recipes/tags/digits/">digits</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/time/">time</a>, <a href="/recipes/tags/winuae/">winuae</a>).
</p>
<p>BIG_TIME.py</p>
<p>Remember this?</p>
<p><a href="http://code.activestate.com/recipes/578610-a-simple-clock-well-maybe-not-that-simple/" rel="nofollow">http://code.activestate.com/recipes/578610-a-simple-clock-well-maybe-not-that-simple/</a></p>
<p>And this?</p>
<p><a href="http://code.activestate.com/recipes/578079-pure-fun-for-text-mode-python/?in=user-4177147" rel="nofollow">http://code.activestate.com/recipes/578079-pure-fun-for-text-mode-python/?in=user-4177147</a></p>
<p>Well the Python version of the top URL has been uploaded to AMINET on 01-08-2013...</p>
<p>Now the big gun that complained about my fun Python upload and voted it down can see
that this was a serious attempt ae viewing "Hello World!" in extra large xharacters.</p>
<p>This is the result in Python...</p>
<p>It is ONLY uploaded to AMINET and that is where it will stay.</p>
<p>If you want it then use the pointer inside code section.</p>
<p>Remember to change the BIG_TIME.py.txt file on AMINET to BIG_TIME.py...</p>
<p>Designed around a Macbook Pro OSX 10.7.5 for the Classic AMIGA platforms and works
on Debian 6.0.x and PCLiuxOS 2009 using Python versions 1.4.0 to 3.3.2 inclusive...</p>
<p>Although the description in the AMINET readme below is for an AMIGA environment it does
not take a genius to adapt it to the other platforms...</p>
<p>Boy was this difficult to get working in a single Python script...</p>
<p>ENJOY...</p>
<p>This is the AMINET readme file:-</p>
<p>Short: A Big Digital Clock Python Script.
Author: <a href="mailto:wisecracker@tesco.net">wisecracker@tesco.net</a> (Barry Walker)
Uploader: <a href="mailto:wisecracker@tesco.net">wisecracker@tesco.net</a> (Barry Walker)
Type: dev/src
Version: 1.00.00
Architecture: generic; m68k-amigaos</p>
<p>Distribution: Public Domain, Emailware.</p>
<p>============================================================================</p>
<h5 id="architectures-classic-amigas-e-uae-and-winuae">Architectures: Classic AMIGAs, E-UAE and WinUAE.</h5>
<p>MINIMUM Requirements Are:-</p>
<hr />
<pre class="prettyprint"><code> 68EC020 CPU and 2MB RAM total, example, a standard A1200(HD).
WinUAE Version 1.5.3 minimum.
Standard OS3.0x install or better.
Python Version 1.4.0 or higher.
(Also, OSX 10.7.5, Debian Linux 6.0.x and PCLinuxOS 2009.)
</code></pre>
<hr />
<h5 id="history">History.</h5>
<p>01-08-2013.
Version 1.00.00:- Original upload to AMINET...</p>
<p>This is dedicated entirely to the AMIGA community and AMINET and will not
be uploaded elsewhere.</p>
<hr />
<p>To install just download the "BIG_TIME.py.txt" file and rename it to
"BIG_TIME.py" without the quotes. Drag this file into your AMIGA PYTHON:
volume and...</p>
<p>From a minimum of Python Version 1.4.0 prompt:-</p>
<pre class="prettyprint"><code>>>> exec(open("PYTHON:BIG_TIME.py").read())<CR>
</code></pre>
<p>And away you go...</p>
<p>This code is/was designed to work in all versions of Python from 1.4.0
to 3.3.2 on at least the platforms shown in the Architectures: section.</p>
<p>It was developed entirely on a Macbook Pro OSX 10.7.5 and finalised using
MEmacs for the AMIGA.</p>
<hr />
<p>This is just a simple DEMO to show how to generate large digits in Python
and put them to use as an _AT_A_GLANCE_ digital clock.</p>
<p>It starts up by generating all of the characters available for the DEMO
for five seconds then goes into the clock proper.</p>
<p>As this code is multi platform AND multi Python version then it is issued
as GPL2...</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>
<hr />
<pre class="prettyprint"><code> IMPORTANT:-
-----------
The Legal Stuff:-
-----------------
This Python script is issued under the GPL2 licence conditions.
The author is not responsible for any damage to, or loss of, or
failure of equipment or data caused in any way by the use of this
script. There is NO warranty with the use of this software release
and YOU USE IT AT YOUR OWN RISK.
</code></pre>
<hr />
<pre class="prettyprint"><code>Testing Evaluation:-
--------------------
All WinUAE, E-UAE and Classic AMIGA test conditions were/are running
standard OS3.0x/OS3.1x and using standard ~topaz 8~ fonts throughout.
I have no idea what strange configuration setups will create so refer
to the ~The Legal Stuff~ above.
</code></pre>
<hr />
<p>Contact:-</p>
<hr />
<p>Mr Barry Walker, G0LCU.</p>
<p>Email:- <a href="mailto:wisecracker@tesco.net">wisecracker@tesco.net</a></p>
<p>Author of the ~TestGear?~ projects in the ~docs/hard~ drawer of AMINET.</p>
<hr />
<p>A very useful HardWare related site, (C) Anthony Hoffman, for
modifications, schematics, repairs and the like is:-</p>
<pre class="prettyprint"><code> <a href="http://amiga.serveftp.net/">http://amiga.serveftp.net/</a>
</code></pre>
<p>============================================================================</p>
Position The Cursor Almost Anywhere Inside Standard Text Mode Python Terminal. (Python)
2012-06-17T17:10:29-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578167-position-the-cursor-almost-anywhere-inside-standar/
<p style="color: grey">
Python
recipe 578167
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/cursor/">cursor</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/locate/">locate</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/winuae/">winuae</a>).
</p>
<p>A DEMO showing the power of the ANSI (ASCII) _Esc_ codes in standard text mode Python.</p>
<p>ANSI _Esc_ codes here:- <a href="http://www.termsys.demon.co.uk/vtansi.htm" rel="nofollow">http://www.termsys.demon.co.uk/vtansi.htm</a></p>
<p>There are only three important things from the ANSI _Esc_ codes that are needed to obtain a neat finish to a program written in standard text mode Python:-</p>
<p>1) Clearing the screen. (Already done without the dedicated ANSI _Esc_ code!)</p>
<p>2) Colours and other character attributes. (Already done!)</p>
<p>3) A forced printing of a character or string from a given location inside the Terminal window.</p>
<p>To clear the screen does NOT require another dedicated ANSI _Esc_ code, (although it exists). This code uses the print("\r\n") method which works in all cases coupled with the one function supplied......</p>
<p>For The Classic AMIGA, E-UAE, WinUAE and Linux using Python(s) 1.4.0 to Python 3.2.2. Read the code for more information...</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>
<p>Bazza, G0LCU.</p>
For AMIGA-Heads Only. Poking A HW, (Memory), Address On A Classic AMIGA, Inside Text Mode Python. (Python)
2012-09-09T19:25:00-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578255-for-amiga-heads-only-poking-a-hw-memory-address-on/
<p style="color: grey">
Python
recipe 578255
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/hardware/">hardware</a>, <a href="/recipes/tags/memory/">memory</a>, <a href="/recipes/tags/poke/">poke</a>, <a href="/recipes/tags/winuae/">winuae</a>).
</p>
<p>For AMIGA-Heads Only...</p>
<p>This code is purely for a minimum of a stock Classic AMIGA A1200(HD), E-UAE, and WinUAE running AMIGA OS3.0x to 3.1x.
It will NOT work on any other platform!</p>
<p>(It MIGHT work on AMIGA OS3.5x and 3.9x with Python 2.4.6, but totally untested and I hold no responsibility for the outcome when trying it.)</p>
<p>It is a DEMO to poke a byte inside _ANY_ memory address inside the standard CPU 68EC020 16MB boundary.</p>
<p>This is not a function nor a class but just a DEMO to show how to write directly to HW, (or memory), addresses.</p>
<p>POKING memory or hardware addresses is not recommended for novices without studying the machine first, and, this code will ignore any _ENFORCER_hits_.</p>
<p>I experimented with this several years ago and have decided to finally release it. I do await the flak!</p>
<p>It works from Python Versions 1.4.0 to 2.0.1 for the classic AMIGA.</p>
<p>This is issued as Public Domain and you may do with it as you please.</p>
<p>Ensure that the T: Volume exists on the running machine.</p>
<p>See inside the code and text below it also as to how it works...</p>
<p>Bazza, G0LCU...</p>
For AMIGA-Heads Only. Peeking A Memory Address On A Classic AMIGA, Inside Text Mode Python. (Python)
2012-07-03T17:00:20-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578189-for-amiga-heads-only-peeking-a-memory-address-on-a/
<p style="color: grey">
Python
recipe 578189
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/peek/">peek</a>, <a href="/recipes/tags/peeking/">peeking</a>, <a href="/recipes/tags/winuae/">winuae</a>).
</p>
<p>For AMIGA-Heads Only...</p>
<p>This code is purely for a minimum of a stock Classic AMIGA A1200(HD), E-UAE, and WinUAE running AMIGA OS3.0x to 3.1x. It will NOT work on any other platform!</p>
<p>(It MIGHT work on AMIGA OS3.5x and 3.9x with Python 2.4.6, but totally untested and I hold no responsibility for the outcome when trying it.)</p>
<p>It is a DEMO to peek a byte inside _ANY_ memory address inside the standard CPU 68EC020 16MB boundary.</p>
<p>I experimented with this several years ago and have decided to finally release it. I do await the flak!</p>
<p>It works from Python Versions 1.4.0 to 2.0.1 for the classic AMIGA.</p>
<p>Ensure that the T: Volume exists on the running machine.</p>
<p>See inside the code and text below it also as to how it works...</p>
<p>Bazza, G0LCU...</p>
For AMIGA-Heads Only. Generating An Audio Signal In Text Mode Python. (Python)
2011-11-30T21:23:20-08:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577971-for-amiga-heads-only-generating-an-audio-signal-in/
<p style="color: grey">
Python
recipe 577971
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/sound/">sound</a>, <a href="/recipes/tags/winuae/">winuae</a>).
</p>
<p>This DEMO is not for the big guns. It is aimed at those who still use
a minimum of an ancient classic AMIGA A1200(HD), E-UAE, WinUAE, of which
there are still a lot of us about...</p>
<p>No comments about the use of "eval()" as Python Version 1.4.0 does not
have "int()" and this is designed to work on all versions of Python
available for the above platform. See the code for minimum requirements
and much more information.</p>
<p>MANY THANKS to Irmen de Jong for porting early versions of Python to
the classic AMIGA to give we lowly users a taste of what was/is to come.</p>
<p>This code will probably make the professionals cough a little, but, boy
what fun it is to see how powerful Python can be on an open platform
like the AMIGA.</p>
<p>Written in such a way that anyone can understand how it works...</p>
<p>I really don't care how you vote this as it is for those, including
professionals, who enjoy messing with AMIGA variants purely for fun and
relaxation, and, to......</p>
<p>Enjoy finding simple solutions to often VERY difficult problems... ;o)</p>
<p>Bazza, G0LCU...</p>
For AMIGA-Heads Only. PAR: As A VOLUME In READ Mode Only. (Python)
2011-06-12T16:34:12-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577750-for-amiga-heads-only-par-as-a-volume-in-read-mode-/
<p style="color: grey">
Python
recipe 577750
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/parallel/">parallel</a>, <a href="/recipes/tags/parallel_port/">parallel_port</a>, <a href="/recipes/tags/port/">port</a>, <a href="/recipes/tags/read/">read</a>).
</p>
<p>PAR: as a VOLUME in READ mode using Python 1.4 onwards on Classic AMIGAs...</p>
<p>Many years ago Irmen de Jong ported Python to the Classic AMIGA range of
computers, (many thanks Irmen for your time in doing so). The versions were
at least 1.4.x to 2.0.1 and now someone else has included version 2.4.6.</p>
<p>This gives we lowly users of the AMIGA at least a chance to see and use
Python in some guise or another. This code shows how to access the AMIGA
parallel port for 8 bit READ only. This is so that ADCs could be attached to
the port, read by Python code EASILY and utilised as a Data Logger/Transient
Recorder, as just one example.</p>
<p>There needs to be a single HW WIRE link only from the 23 way video port
to the 25 way parallel port for this to work. See the archive......</p>
<p><a href="http://aminet.net/package/docs/hard/PAR_READ" rel="nofollow">http://aminet.net/package/docs/hard/PAR_READ</a></p>
<p>......on how to set about this extremely simple task.</p>
<p>NO knowledge of the parallel port programming is needed at all to grab 8 bit
data from it using Python and other languages; (ARexx is used in the archive
above).</p>
<p>There is a flaw, NOTE:- NOT A BUG!, in the Python code but for this DEMO it
is ignored. ;o)</p>
<p>I'll let all you big guns work out what it is; you will need a good working
knowledge of the Classic AMIGA.</p>
<p>Enjoy finding simple solutions to often very difficult problems. ;o)</p>
<p>This code is Public Domain and you may do with it as you please.</p>
<p>Bazza...</p>
Arduino Diecimila Board Access Inside WinUAE DEMO. (Python)
2011-03-26T14:30:31-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577625-arduino-diecimila-board-access-inside-winuae-demo/
<p style="color: grey">
Python
recipe 577625
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/access/">access</a>, <a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/arduino/">arduino</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/winuae/">winuae</a>).
Revision 2.
</p>
<p>This is one of a few Arduino Python snippets to come your way. This one is DEDICATED entirely to the classic stock
AMIGA A1200HD emulation inside WinUAE. With a small hardware modification it WILL work on a genuine stock AMIGA
A1200HD also see inside the code for more information.</p>
<p>It only requires an ancient version of SATNDARD Python 1.4.x as an absolute minimum, and yes I know it is ancient,
but hey, the classic AMIGA is still capable of running Python to version 2.0.x; other AMIGA variants can run much
newer versions.</p>
<p>Original copyright, (C)2008, B.Walker, G0LCU. NOW issued as entirely Public Domain...</p>
<p>Certain assumptions have been made and are inside the code.</p>
<p>Also in the code box is the very basic Test.pde file to program the Arduino Diecimila Board with so that this
works.</p>
<p>There will be Linux and Windows versions coming that require only STANDARD Python also - NO pySerial is required
AT ALL.</p>
<p>Sorry but you will need to split the two pieces of code below manually...</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>