Re: Connecting 2 Peggy II boards and increasing the number of commands to execute.s

Home Evil Mad Scientist Forums LED Matrix Kits Connecting 2 Peggy II boards and increasing the number of commands to execute.s Re: Connecting 2 Peggy II boards and increasing the number of commands to execute.s

#21014
Mongo Hi Power
Participant

The idea of using a processor with additional memory is the easiest method, so far, to increase run time.
More Memory = More Run Time.
To illustrate how I am applying the Peggyboard I will give an overview in pseudo-code.
The code snippet, in the first post, is a true representation of the program structure.  I am only using the following verbs; ~.SetPoint(), ~.ClearPoint(), and ~.RefreshAllFast().  Is there a better way to code this?  The application is to recreate the appearance of the Railroad Track Layout Status Board for the Cincinnati Union Terminal Control Tower.  Each led illuminates 1 indicator showing Track Occupancy or Signal indications.  A sequence illustrates the movement of trains in the Terminal ‘Yard’

A typical sequence is:
Set(N1) ;
Refresh(3 seconds) ;
Set(N2) ;
Refresh(2 Sec) ;
Clear(N1) ;
Refresh(2 Sec) ;
Set(N3) ;
ad infinitum

Is there a better way to code this?
Can there be Functions, or Macros, for repetative code sequences?