I added the Blinkenlights program to the list of functions that can be selected via AUX1 down.
prog_games.h - add:
uint16_t prog_games_copy_blinkenlights( );
prog_games.cpp - add:
static const byte PROGMEM blinkenlights[ ] = {
0041, 0000, 0000, 0026, 0001, 0001, 0036, 0000,
0032, 0032, 0032, 0032, 0011, 0322, 0010, 0000,
0333, 0377, 0346, 0007, 0306, 0047, 0006, 0000,
0117, 0012, 0107, 0001, 0047, 0000, 0062, 0042,
0000, 0315, 0377, 0000, 0303, 0005, 0000, 0057,
0064, 0071, 0123, 0133, 0151, 0057, 0057, 0172,
0007, 0127, 0137, 0311, 0172, 0017, 0127, 0137,
0311, 0172, 0007, 0127, 0326, 0001, 0312, 0116,
0000, 0172, 0036, 0377, 0172, 0326, 0200, 0300,
0076, 0017, 0062, 0072, 0000, 0311, 0076, 0007,
0303, 0112, 0000, 0172, 0007, 0356, 0001, 0127,
0036, 0377, 0311, 0172, 0356, 0001, 0017, 0127,
0036, 0377, 0311, 0201, 0102, 0044, 0030, 0044,
0202, 0173, 0376, 0006, 0322, 0170, 0000, 0306,
0143, 0006, 0000, 0117, 0012, 0127, 0034, 0311,
0036, 0000, 0303, 0151, 0000
};
also to prog_games.cpp - add:
uint16_t prog_games_copy_blinkenlights( )
{
if ( prog_copy_to_ram( 0x0000, blinkenlights, sizeof( blinkenlights ) ) )
{
return 0x0000;
}
else
{
return 0xFFFF;
}
}
to prog.cpp - add the following to the programs array in the get_prog_info function:
{PSTR("Blinkenlights"), prog_games_copy_blinkenlights, true},
I believe if you're running on the Altair-Duino Pro, you also need to make the following change (needed for the VT100 Emulator) to host_due.h:
#define USE_SERIAL_ON_A6A7 1
Don
KD2GXH