├── _BUILD ├── LCDdirectLVDS.eep ├── main.o ├── main.lst ├── LCDdirectLVDS.elf ├── _commonCode_localized │ ├── tcnter │ │ └── 0.30 │ │ │ ├── tcnter.o │ │ │ └── tcnter.d │ ├── heartbeat │ │ └── 1.50 │ │ │ ├── heartbeat.o │ │ │ └── heartbeat.d │ ├── timerCommon │ │ └── 1.22 │ │ │ ├── timerCommon.o │ │ │ └── timerCommon.d │ └── hfModulation │ │ └── 1.00 │ │ ├── hfModulation.o │ │ └── hfModulation.d └── main.d ├── _commonCode_localized ├── hfModulation │ └── 1.00 │ │ ├── also.txt │ │ ├── test │ │ ├── hfmTest6 │ │ ├── hfmTest7 │ │ ├── old │ │ │ ├── hfmTest.c │ │ │ ├── hfmTest2.c │ │ │ ├── hfmTest3.c │ │ │ ├── hfmTest4.c │ │ │ └── hfmTest5.c │ │ └── hfmTest6.c │ │ ├── test.old │ │ ├── hfmTest │ │ └── hfmTest.c │ │ ├── test.old2 │ │ ├── hfmTest │ │ └── hfmTest.c │ │ └── hfModulation.mk ├── tcnter │ └── 0.30 │ │ └── testuint16Max │ │ └── _NOTE.txt ├── bithandling │ └── 0.95 │ │ ├── test │ │ └── main │ │ └── sfrNotes.txt ├── timerCommon │ └── 1.22 │ │ ├── WGM Notes.txt │ │ └── timerCommon.mk ├── sineTable │ └── 0.99 │ │ ├── sineCreate │ │ ├── sineCreate │ │ ├── sineCreateInt8 │ │ ├── sineCreateRound │ │ ├── sineTable8.txt │ │ ├── sineTable.txt │ │ └── sineTableRound.txt │ │ └── sineTable.mk ├── heartbeat │ └── 1.50 │ │ ├── testTiny861+button+TCNTER 0_withDMS_running.zip │ │ ├── testTiny861+button+TCNTER 1_LCDdirectLVDS_complains_getHeartRateDoesntReturn_whyNotHereEh.zip │ │ ├── test │ │ ├── main.c │ │ └── projInfo.h │ │ ├── testDMS │ │ ├── main.c │ │ └── projInfo.h │ │ ├── testPWM161 │ │ ├── main.c │ │ └── projInfo.h │ │ ├── testPWM161+button │ │ └── projInfo.h │ │ ├── testPWM161+button+DMS │ │ └── projInfo.h │ │ ├── testPWM161+button+TCNTER │ │ └── projInfo.h │ │ ├── testTiny861+button+TCNTER │ │ └── projInfo.h │ │ └── testTiny861+button+TCNTER_PA6 │ │ └── projInfo.h ├── lcdStuff │ └── 0.80ncfDD6651 │ │ └── README.TXT └── adc │ └── 0.20 │ └── adc.mk ├── _unusedIdeas ├── IDEAS.TXT ├── scopeHsync.c ├── frameSync.c └── pixelScroll.c ├── _tools ├── timer0Calculator ├── halfColors.sh 0.zip ├── halfColors.sh 1.zip ├── halfColors.sh 2.zip ├── halfColors.sh 3.zip ├── halfColors.sh 4.zip ├── halfColors.sh 5.zip ├── halfColors.sh 6.zip ├── lvdsColorExperiments ├── halfColorsParser.sh 0.zip ├── halfColorsParser.sh 2.zip ├── halfColors.sh 7_priorToPrune.zip ├── bad │ └── halfColors.sh 8_stepByStep.zip ├── halfColorsParser.sh 1_whewWhatAMessIdMade.zip ├── LCDdirectLVDS_48c.gpl ├── configParser.sh ├── LCDdirectLVDS_+HalfColors.gpl.test ├── createUnrolledLoop.sh ├── configParser2.sh ├── halfColors216.sh ├── halfColors7.sh ├── halfColorsParser.sh ├── halfColors216.gpl └── thisShouldBe216.gpl ├── _options ├── .frameBuffer.h.swp └── fb_writeColorCalls.err ├── _old ├── icons 0_mpacking_stillNoGo.zip ├── backup_attiny861_2013-10-27_07.27.18 │ └── eeprom.hex └── clockInsensitivityTesting.c ├── icons ├── iconPacking.c.unused ├── moreIdeas.txt ├── SolidBump3.h ├── gPixelVal.h ├── Biggie.h ├── Luigi.h └── SolidBump.h ├── _hitSensors └── README.txt ├── ___OLD___.txt ├── projInfo.h ├── oddities.txt ├── dualPixelThoughts.txt ├── hsyncCalcs.txt ├── _displays └── displayNotes.txt ├── __use_Local_CommonCode.mk ├── fb_question.h ├── hsyncTimerStuff.c ├── main.h └── delay_cyc.h /_BUILD/LCDdirectLVDS.eep: -------------------------------------------------------------------------------- 1 | :00000001FF 2 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/also.txt: -------------------------------------------------------------------------------- 1 | also used by 24Scam5 2 | -------------------------------------------------------------------------------- /_BUILD/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_BUILD/main.o -------------------------------------------------------------------------------- /_BUILD/main.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_BUILD/main.lst -------------------------------------------------------------------------------- /_commonCode_localized/tcnter/0.30/testuint16Max/_NOTE.txt: -------------------------------------------------------------------------------- 1 | see also polled_uat/0.75/testLikePWM161/ 2 | -------------------------------------------------------------------------------- /_unusedIdeas/IDEAS.TXT: -------------------------------------------------------------------------------- 1 | Row-Dithering 2 | e.g. color -> black -> color -> black, alternating rows 3 | -------------------------------------------------------------------------------- /_BUILD/LCDdirectLVDS.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_BUILD/LCDdirectLVDS.elf -------------------------------------------------------------------------------- /_tools/timer0Calculator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/timer0Calculator -------------------------------------------------------------------------------- /_tools/halfColors.sh 0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 0.zip -------------------------------------------------------------------------------- /_tools/halfColors.sh 1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 1.zip -------------------------------------------------------------------------------- /_tools/halfColors.sh 2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 2.zip -------------------------------------------------------------------------------- /_tools/halfColors.sh 3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 3.zip -------------------------------------------------------------------------------- /_tools/halfColors.sh 4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 4.zip -------------------------------------------------------------------------------- /_tools/halfColors.sh 5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 5.zip -------------------------------------------------------------------------------- /_tools/halfColors.sh 6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 6.zip -------------------------------------------------------------------------------- /_options/.frameBuffer.h.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_options/.frameBuffer.h.swp -------------------------------------------------------------------------------- /_tools/lvdsColorExperiments: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/lvdsColorExperiments -------------------------------------------------------------------------------- /_tools/halfColorsParser.sh 0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColorsParser.sh 0.zip -------------------------------------------------------------------------------- /_tools/halfColorsParser.sh 2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColorsParser.sh 2.zip -------------------------------------------------------------------------------- /_old/icons 0_mpacking_stillNoGo.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_old/icons 0_mpacking_stillNoGo.zip -------------------------------------------------------------------------------- /_tools/halfColors.sh 7_priorToPrune.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColors.sh 7_priorToPrune.zip -------------------------------------------------------------------------------- /_tools/bad/halfColors.sh 8_stepByStep.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/bad/halfColors.sh 8_stepByStep.zip -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/tcnter/0.30/tcnter.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_BUILD/_commonCode_localized/tcnter/0.30/tcnter.o -------------------------------------------------------------------------------- /_commonCode_localized/bithandling/0.95/test/main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/bithandling/0.95/test/main -------------------------------------------------------------------------------- /_commonCode_localized/bithandling/0.95/sfrNotes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/bithandling/0.95/sfrNotes.txt -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/hfmTest6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/hfModulation/1.00/test/hfmTest6 -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/hfmTest7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/hfModulation/1.00/test/hfmTest7 -------------------------------------------------------------------------------- /_commonCode_localized/timerCommon/1.22/WGM Notes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/timerCommon/1.22/WGM Notes.txt -------------------------------------------------------------------------------- /_tools/halfColorsParser.sh 1_whewWhatAMessIdMade.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_tools/halfColorsParser.sh 1_whewWhatAMessIdMade.zip -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/heartbeat/1.50/heartbeat.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_BUILD/_commonCode_localized/heartbeat/1.50/heartbeat.o -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test.old/hfmTest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/hfModulation/1.00/test.old/hfmTest -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/timerCommon/1.22/timerCommon.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_BUILD/_commonCode_localized/timerCommon/1.22/timerCommon.o -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test.old2/hfmTest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/hfModulation/1.00/test.old2/hfmTest -------------------------------------------------------------------------------- /_commonCode_localized/sineTable/0.99/sineCreate/sineCreate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/sineTable/0.99/sineCreate/sineCreate -------------------------------------------------------------------------------- /icons/iconPacking.c.unused: -------------------------------------------------------------------------------- 1 | #ifndef __ICON_PACKING_C__ 2 | #define __ICON_PACKING_C__ 3 | 4 | 5 | #include "iconPacking.h" 6 | 7 | 8 | 9 | 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/hfModulation/1.00/hfModulation.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_BUILD/_commonCode_localized/hfModulation/1.00/hfModulation.o -------------------------------------------------------------------------------- /_commonCode_localized/sineTable/0.99/sineCreate/sineCreateInt8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/sineTable/0.99/sineCreate/sineCreateInt8 -------------------------------------------------------------------------------- /_commonCode_localized/sineTable/0.99/sineCreate/sineCreateRound: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/sineTable/0.99/sineCreate/sineCreateRound -------------------------------------------------------------------------------- /_hitSensors/README.txt: -------------------------------------------------------------------------------- 1 | The _hitSensors/ directory is new a/o v82... 2 | Many of the older hit-sensor implementations are in _commonCode/ already 3 | And This may get moved there, as well. 4 | -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/hfModulation/1.00/hfModulation.d: -------------------------------------------------------------------------------- 1 | hfModulation.o hfModulation.d : _commonCode_localized/hfModulation/1.00/hfModulation.c \ 2 | _commonCode_localized/hfModulation/1.00/hfModulation.h 3 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER 0_withDMS_running.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER 0_withDMS_running.zip -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER 1_LCDdirectLVDS_complains_getHeartRateDoesntReturn_whyNotHereEh.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericwazhung/avr-lvds-lcd/HEAD/_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER 1_LCDdirectLVDS_complains_getHeartRateDoesntReturn_whyNotHereEh.zip -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/timerCommon/1.22/timerCommon.d: -------------------------------------------------------------------------------- 1 | timerCommon.o timerCommon.d : _commonCode_localized/timerCommon/1.22/timerCommon.c \ 2 | _commonCode_localized/timerCommon/1.22/timerCommon.h \ 3 | _commonCode_localized/bithandling/0.95//bithandling.h \ 4 | _commonCode_localized/errorHandling/0.99//errorHandling.h 5 | -------------------------------------------------------------------------------- /icons/moreIdeas.txt: -------------------------------------------------------------------------------- 1 | Blue-P-Thing (SMB3) -> coins all over... 2 | Treasure Chest (SMB3) -> Openable 3 | 4 | SMB2 stuff... (Potion -> Door?/1up?) 5 | Cherries 6 | Throwables (Turnip, etc) 7 | Bomb 8 | Lady-bug? 9 | Vine grows-out -> Ladybug climbs -> Follow -> What's at the top? 10 | 11 | https://www.etsy.com/listing/77942060/mario-bros-3-item-ornament-set-13-pieces?ref=exp_listing 12 | -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/tcnter/0.30/tcnter.d: -------------------------------------------------------------------------------- 1 | tcnter.o tcnter.d : _commonCode_localized/tcnter/0.30/tcnter.c \ 2 | _commonCode_localized/tcnter/0.30/tcnter.h hsyncTimerStuff.h \ 3 | lcdDefines.h mainConfig.h _config/frameBufferTesting.h \ 4 | _displays/boeHydisHT12X21.h _interfaces/lvds.h \ 5 | _commonCode_localized/bithandling/0.95//bithandling.h \ 6 | _commonCode_localized/timerCommon/1.22/timerCommon.h \ 7 | _commonCode_localized/bithandling/0.95//bithandling.h \ 8 | _commonCode_localized/errorHandling/0.99//errorHandling.h 9 | -------------------------------------------------------------------------------- /_BUILD/_commonCode_localized/heartbeat/1.50/heartbeat.d: -------------------------------------------------------------------------------- 1 | heartbeat.o heartbeat.d : _commonCode_localized/heartbeat/1.50/heartbeat.c \ 2 | _commonCode_localized/heartbeat/1.50/heartbeat.h \ 3 | _commonCode_localized/bithandling/0.95//bithandling.h \ 4 | _commonCode_localized/hfModulation/1.00/hfModulation.h \ 5 | _commonCode_localized/tcnter/0.30/tcnter.h hsyncTimerStuff.h \ 6 | lcdDefines.h mainConfig.h _config/frameBufferTesting.h \ 7 | _displays/boeHydisHT12X21.h _interfaces/lvds.h \ 8 | _commonCode_localized/bithandling/0.95//bithandling.h \ 9 | _commonCode_localized/timerCommon/1.22/timerCommon.h \ 10 | _commonCode_localized/errorHandling/0.99//errorHandling.h 11 | -------------------------------------------------------------------------------- /___OLD___.txt: -------------------------------------------------------------------------------- 1 | THIS COMMIT IS OLD! 2 | Currently, the version I last-developed (on my desktop) is v135 3 | The version, here, is v98. 4 | This version, v98, is the latest-version uploaded to the interwebs. 5 | 6 | There've been some big-ol' changes inbetween. A list-of-which I haven't compiled... 7 | 8 | The big one is that the configuration/file-layout has changed, somewhat dramatically... 9 | Allowing for easier configuration-switching 10 | Allowing for LVDS displays to run on the ATtiny85 11 | (Also addition of the 6-bit--2bits/color--parallel-LCD interface?) 12 | 13 | Also, the option to use the display as a binary-clock. 14 | 15 | 16 | For Now: 17 | You'll have to contact me if you're interested in the newer features... 18 | Eric Waz Hung at gmail dot com 19 | -------------------------------------------------------------------------------- /_commonCode_localized/sineTable/0.99/sineCreate/sineTable8.txt: -------------------------------------------------------------------------------- 1 | 0, \ 2 | 2, 3, 5, 6, 8, \ 3 | 9, 11, 12, 14, 16, \ 4 | 17, 19, 20, 22, 23, \ 5 | 25, 26, 28, 29, 31, \ 6 | 32, 34, 35, 37, 38, \ 7 | 40, 41, 43, 44, 46, \ 8 | 47, 49, 50, 51, 53, \ 9 | 54, 56, 57, 58, 60, \ 10 | 61, 63, 64, 65, 67, \ 11 | 68, 69, 71, 72, 73, \ 12 | 74, 76, 77, 78, 79, \ 13 | 81, 82, 83, 84, 85, \ 14 | 86, 88, 89, 90, 91, \ 15 | 92, 93, 94, 95, 96, \ 16 | 97, 98, 99, 100, 101, \ 17 | 102, 103, 104, 105, 106, \ 18 | 106, 107, 108, 109, 110, \ 19 | 111, 111, 112, 113, 113, \ 20 | 114, 115, 115, 116, 117, \ 21 | 117, 118, 118, 119, 120, \ 22 | 120, 121, 121, 122, 122, \ 23 | 122, 123, 123, 124, 124, \ 24 | 124, 125, 125, 125, 125, \ 25 | 126, 126, 126, 126, 126, \ 26 | 127, 127, 127, 127, 127, \ 27 | 127, 127, 127, -------------------------------------------------------------------------------- /projInfo.h: -------------------------------------------------------------------------------- 1 | //Auto-generated by makefile 2 | 3 | #ifndef __PROJINFO_H__ 4 | #define __PROJINFO_H__ 5 | #include 6 | 7 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 8 | const uint8_t __attribute__ ((progmem)) \ 9 | header[] = ""; 10 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 11 | const uint8_t __attribute__ ((progmem)) \ 12 | header[] = "LCDdirectLVDS98 2014-07-16 06:52:20"; 13 | #else //projInfo Not Shortened nor overridden 14 | const uint8_t __attribute__ ((progmem)) \ 15 | header0[] = " /Users/meh/_avrProjects/LCDdirectLVDS/98-bump "; 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header1[] = " Wed Jul 16 06:52:20 PDT 2014 "; 18 | const uint8_t __attribute__ ((progmem)) \ 19 | headerOpt[] = " WDT_DIS=TRUE "; 20 | #endif 21 | 22 | //For internal use... 23 | //Currently only usable in main.c 24 | #define PROJ_VER 98 25 | #define COMPILE_YEAR 2014 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /_commonCode_localized/sineTable/0.99/sineCreate/sineTable.txt: -------------------------------------------------------------------------------- 1 | 0, \ 2 | 402, 804, 1206, 1607, 2009, \ 3 | 2410, 2811, 3211, 3611, 4011, \ 4 | 4409, 4807, 5205, 5601, 5997, \ 5 | 6392, 6786, 7179, 7571, 7961, \ 6 | 8351, 8739, 9126, 9511, 9895, \ 7 | 10278, 10659, 11038, 11416, 11792, \ 8 | 12166, 12539, 12909, 13278, 13645, \ 9 | 14009, 14372, 14732, 15090, 15446, \ 10 | 15799, 16150, 16499, 16845, 17189, \ 11 | 17530, 17868, 18204, 18537, 18867, \ 12 | 19194, 19519, 19840, 20159, 20474, \ 13 | 20787, 21096, 21402, 21705, 22004, \ 14 | 22301, 22594, 22883, 23169, 23452, \ 15 | 23731, 24006, 24278, 24546, 24811, \ 16 | 25072, 25329, 25582, 25831, 26077, \ 17 | 26318, 26556, 26789, 27019, 27244, \ 18 | 27466, 27683, 27896, 28105, 28309, \ 19 | 28510, 28706, 28897, 29085, 29268, \ 20 | 29446, 29621, 29790, 29955, 30116, \ 21 | 30272, 30424, 30571, 30713, 30851, \ 22 | 30984, 31113, 31236, 31356, 31470, \ 23 | 31580, 31684, 31785, 31880, 31970, \ 24 | 32056, 32137, 32213, 32284, 32350, \ 25 | 32412, 32468, 32520, 32567, 32609, \ 26 | 32646, 32678, 32705, 32727, 32744, \ 27 | 32757, 32764, 32767, -------------------------------------------------------------------------------- /_commonCode_localized/sineTable/0.99/sineCreate/sineTableRound.txt: -------------------------------------------------------------------------------- 1 | 0, \ 2 | 402, 804, 1206, 1608, 2009, \ 3 | 2410, 2811, 3212, 3612, 4011, \ 4 | 4410, 4808, 5205, 5602, 5998, \ 5 | 6393, 6786, 7179, 7571, 7962, \ 6 | 8351, 8739, 9126, 9512, 9896, \ 7 | 10278, 10659, 11039, 11417, 11793, \ 8 | 12167, 12539, 12910, 13279, 13645, \ 9 | 14010, 14372, 14732, 15090, 15446, \ 10 | 15800, 16151, 16499, 16846, 17189, \ 11 | 17530, 17869, 18204, 18537, 18868, \ 12 | 19195, 19519, 19841, 20159, 20475, \ 13 | 20787, 21096, 21403, 21705, 22005, \ 14 | 22301, 22594, 22884, 23170, 23452, \ 15 | 23731, 24007, 24279, 24547, 24811, \ 16 | 25072, 25329, 25582, 25832, 26077, \ 17 | 26319, 26556, 26790, 27019, 27245, \ 18 | 27466, 27683, 27896, 28105, 28310, \ 19 | 28510, 28706, 28898, 29085, 29268, \ 20 | 29447, 29621, 29791, 29956, 30117, \ 21 | 30273, 30424, 30571, 30714, 30852, \ 22 | 30985, 31113, 31237, 31356, 31470, \ 23 | 31580, 31685, 31785, 31880, 31971, \ 24 | 32057, 32137, 32213, 32285, 32351, \ 25 | 32412, 32469, 32521, 32567, 32609, \ 26 | 32646, 32678, 32705, 32728, 32745, \ 27 | 32757, 32765, 32767, -------------------------------------------------------------------------------- /_tools/LCDdirectLVDS_48c.gpl: -------------------------------------------------------------------------------- 1 | GIMP Palette 2 | Name: LCDdirectLVDS_48c 3 | Columns: 8 4 | # 5 | 0 24 60 r0g0b0 6 | 141 28 60 r1g0b0 7 | 206 28 60 r2g0b0 8 | 255 28 60 r3g0b0 9 | 0 153 60 r0g1b0 10 | 141 157 60 r1g1b0 11 | 206 157 60 r2g1b0 12 | 255 157 60 r3g1b0 13 | 0 218 60 r0g2b0 14 | 141 222 60 r1g2b0 15 | 206 222 60 r2g2b0 16 | 255 222 60 r3g2b0 17 | 0 250 60 r0g2b0 18 | 141 255 60 r1g3b0 19 | 206 255 60 r2g3b0 20 | 255 255 60 r3g3b0 21 | 0 24 190 r0g0b2 22 | 141 28 190 r1g0b2 23 | 206 28 190 r2g0b2 24 | 255 28 190 r3g0b2 25 | 0 153 190 r0g1b2 26 | 141 157 190 r1g1b2 27 | 206 157 190 r2g1b2 28 | 255 157 190 r3g1b2 29 | 0 218 190 r0g2b2 30 | 141 222 190 r1g2b2 31 | 206 222 190 r2g2b2 32 | 255 222 190 r3g2b2 33 | 0 250 190 r0g2b2 34 | 141 255 190 r1g3b2 35 | 206 255 190 r2g3b2 36 | 255 255 190 r3g3b2 37 | 0 24 255 r0g0b3 38 | 141 28 255 r1g0b3 39 | 206 28 255 r2g0b3 40 | 255 28 255 r3g0b3 41 | 0 153 255 r0g1b3 42 | 141 157 255 r1g1b3 43 | 206 157 255 r2g1b3 44 | 255 157 255 r3g1b3 45 | 0 218 255 r0g2b3 46 | 141 222 255 r1g2b3 47 | 206 222 255 r2g2b3 48 | 255 222 255 r3g2b3 49 | 0 250 255 r0g2b3 50 | 141 255 255 r1g3b3 51 | 206 255 255 r2g3b3 52 | 255 255 255 r3g3b3 53 | -------------------------------------------------------------------------------- /_old/backup_attiny861_2013-10-27_07.27.18/eeprom.hex: -------------------------------------------------------------------------------- 1 | :20000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 2 | :20002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 3 | :20004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0 4 | :20006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0 5 | :20008000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80 6 | :2000A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF60 7 | :2000C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF40 8 | :2000E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF20 9 | :20010000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 10 | :20012000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDF 11 | :20014000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBF 12 | :20016000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F 13 | :20018000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F 14 | :2001A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5F 15 | :2001C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF3F 16 | :2001E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1F 17 | :00000001FF 18 | -------------------------------------------------------------------------------- /_tools/configParser.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | # THE IDEA: 5 | # If we preprocess mainConfig.h before running 'make' on the project 6 | # we can conditionally include stuff as needed 7 | 8 | # A good test: 'configParser.sh TRUE' 9 | # Also: __REGISTER_PREFIX__ (defined, with no value) 10 | 11 | macroToFind="$1" 12 | 13 | if [ "$1" == "" ] 14 | then 15 | echo "Usage: 'configParser.sh '" 16 | exit 1 17 | fi 18 | 19 | ppFile="_BUILD/mainConfig.preprocessed" 20 | cfgFile="mainConfig.h" 21 | 22 | 23 | gcc -o "$ppFile" -E -dM -D'TRUE=1' -D'FALSE=0' "$cfgFile" 24 | 25 | 26 | if [ "$?" != "0" ] 27 | then 28 | echo "preprocessing of mainConfig.h failed..." 29 | exit 1 30 | fi 31 | 32 | 33 | lines="`grep "$macroToFind" "$ppFile"`" 34 | 35 | if [ "$?" != "0" ] 36 | then 37 | echo "'$macroToFind' Not Defined" 38 | exit 1 39 | fi 40 | 41 | IFS=" 42 | " 43 | definitionFound=0 44 | for line in $lines 45 | do 46 | 47 | value="${line#"#define "$macroToFind }" 48 | 49 | if [ "$value" != "$line" ] 50 | then 51 | echo "Found Definition: '$line' with value: '$value'" 52 | echo "MAKE_MAINCONFIG__$macroToFind=\"$value\"" 53 | definitionFound=$((definitionFound+1)) 54 | else 55 | echo "Found something else: '$line'" 56 | fi 57 | done 58 | 59 | if [ "$definitionFound" != "0" ] 60 | then 61 | exit 0 62 | else 63 | exit 1 64 | fi 65 | 66 | 67 | #while [ 1 ] 68 | #do 69 | # read -r line <&10 || break 70 | 71 | #done 10<"$ppFile" 72 | 73 | 74 | -------------------------------------------------------------------------------- /_tools/LCDdirectLVDS_+HalfColors.gpl.test: -------------------------------------------------------------------------------- 1 | GIMP Palette 2 | Name: LCDdirectLVDS_48c 3 | Columns: 8 4 | # 5 | 0 24 60 r0g0b0 6 | 70 26 60 r0+1g0+0b0+0 7 | 103 26 60 r0+2g0+0b0+0 8 | 127 26 60 r0+3g0+0b0+0 9 | 0 88 60 r0+0g0+1b0+0 10 | 70 90 60 r0+1g0+1b0+0 11 | 103 90 60 r0+2g0+1b0+0 12 | 127 90 60 r0+3g0+1b0+0 13 | 0 121 60 r0+0g0+2b0+0 14 | 70 123 60 r0+1g0+2b0+0 15 | 103 123 60 r0+2g0+2b0+0 16 | 127 123 60 r0+3g0+2b0+0 17 | 0 137 60 r0+0g0+2b0+0 18 | 70 139 60 r0+1g0+3b0+0 19 | 103 139 60 r0+2g0+3b0+0 20 | 127 139 60 r0+3g0+3b0+0 21 | 0 24 125 r0+0g0+0b0+2 22 | 70 26 125 r0+1g0+0b0+2 23 | 103 26 125 r0+2g0+0b0+2 24 | 127 26 125 r0+3g0+0b0+2 25 | 0 88 125 r0+0g0+1b0+2 26 | 70 90 125 r0+1g0+1b0+2 27 | 103 90 125 r0+2g0+1b0+2 28 | 127 90 125 rThisgShouldbNotBeKept 29 | 0 121 125 r0+0g0+2b0+2 30 | 70 123 125 r0+1g0+2b0+2 31 | 103 123 125 r0+2g0+2b0+2 32 | 127 123 125 r0+3g0+2b0+2 33 | 0 137 125 r0+0g0+2b0+2 34 | 70 139 125 r0+1g0+3b0+2 35 | 103 139 125 r0+2g0+3b0+2 36 | 127 139 125 r0+3g0+3b0+2 37 | 0 24 157 r0+0g0+0b0+3 38 | 70 26 157 r0+1g0+0b0+3 39 | 127 90 125 rThisgShouldbBeKept 40 | 103 26 157 r0+2g0+0b0+3 41 | 127 26 157 r0+3g0+0b0+3 42 | 0 88 157 r0+0g0+1b0+3 43 | 70 90 157 r0+1g0+1b0+3 44 | 103 90 157 r0+2g0+1b0+3 45 | 127 90 157 r0+3g0+1b0+3 46 | 0 121 157 r0+0g0+2b0+3 47 | 70 123 157 r0+1g0+2b0+3 48 | 103 123 157 r0+2g0+2b0+3 49 | 127 123 157 r0+3g0+2b0+3 50 | 0 137 157 r0+0g0+2b0+3 51 | 70 139 157 r0+1g0+3b0+3 52 | 103 139 157 r0+2g0+3b0+3 53 | 127 139 157 r0+3g0+3b0+3 54 | 141 28 60 r1g0b0 55 | -------------------------------------------------------------------------------- /_BUILD/main.d: -------------------------------------------------------------------------------- 1 | main.o main.d : main.c projInfo.h main.h \ 2 | _commonCode_localized/bithandling/0.95//bithandling.h \ 3 | _commonCode_localized/heartbeat/1.50/heartbeat.h \ 4 | _commonCode_localized/bithandling/0.95//bithandling.h \ 5 | _commonCode_localized/hfModulation/1.00/hfModulation.h \ 6 | _commonCode_localized/tcnter/0.30/tcnter.h hsyncTimerStuff.h \ 7 | lcdDefines.h mainConfig.h _config/frameBufferTesting.h \ 8 | _displays/boeHydisHT12X21.h _interfaces/lvds.h \ 9 | _commonCode_localized/bithandling/0.95//bithandling.h \ 10 | _commonCode_localized/timerCommon/1.22/timerCommon.h \ 11 | _commonCode_localized/errorHandling/0.99//errorHandling.h \ 12 | _commonCode_localized/timerCommon/1.22/timerCommon.h fbColors.h \ 13 | mainConfig.h delay_cyc.h delay_cyc.c lcdDefines.h \ 14 | _hitSensors/bumpSwitch.c fb_question.h _interfaces/lvds.c \ 15 | _interfaces/lvds.h pll.c fb_question.h _options/writeColor.c \ 16 | _options/frameBuffer.c _options/writeColorDelay.h \ 17 | _options/fb_writeColorCalls.c fb_question.c icons/Question3.h \ 18 | icons/iconPacking.h icons/gPixelVal.h icons/spriteMotion.h \ 19 | icons/defaultMotion.c icons/Question.h icons/Solid.h icons/SolidBump.h \ 20 | icons/Solid.h icons/Goomba.h icons/GoombaDead.h icons/1up.h \ 21 | icons/Biggie.h icons/1up.h icons/StarV.h icons/FlowerPowerV.h \ 22 | icons/FlowerPowerV.h icons/Coin.h icons/Cloud.h icons/Coin.h \ 23 | icons/Mario.h icons/Luigi.h icons/Mario.h icons/MarioRuns.h \ 24 | icons/LuigiRuns.h icons/MarioRuns.h icons/Solid3.h icons/Question3.h \ 25 | icons/SolidBump3.h icons/Solid3.h icons/SolidBump.h icons/Leaf.h \ 26 | icons/TanookiSuit.h icons/Frog.h icons/Boot.h icons/Hammer.h \ 27 | icons/PWing.h icons/MusicBox.h icons/spriteMotion.c \ 28 | _commonCode_localized/lcdStuff/0.80ncfDD6651/lcdStuff.c \ 29 | hsyncTimerStuff.c hsyncTimerStuff.h 30 | -------------------------------------------------------------------------------- /_tools/createUnrolledLoop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | variable="$1" 5 | from="$2" 6 | to="$3" 7 | line="$4" 8 | 9 | 10 | if [ "$(( from > to ))" == "1" ] 11 | then 12 | echo "from < to... NYI" 13 | exit 1 14 | fi 15 | 16 | for (( val=from ; val<=to ; val++ )) 17 | do 18 | 19 | lastTempLine="" 20 | tempLine="$line" 21 | asdfNum=0 22 | 23 | #Replace all occurances of "variable" with a discernable one... 24 | while [ 1 ] 25 | do 26 | lastTempLine=$tempLine 27 | tempLine=${tempLine/$variable/asdf.Temp.$asdfNum} 28 | 29 | if [ "$lastTempLine" == "$tempLine" ] 30 | then 31 | break 32 | fi 33 | # echo "temp:'$tempLine'" 34 | # echo "last:'$lastTempLine'" 35 | asdfNum=$((asdfNum+1)) 36 | done 37 | 38 | # echo "found $asdfNum occurances of '$variable'" 39 | # echo "temp: '$tempLine'" 40 | 41 | #Check each occurance for trailing +#'s 42 | # THIS IS HIGHLY LIMITED 43 | # It only if it's *exactly* "var+n:::" no spaces, 44 | # etc. and n=is a digit. 45 | for (( thisOccurance=0 ; thisOccurance < asdfNum ; thisOccurance++ )) 46 | do 47 | tempLinePost="${tempLine#*asdf.Temp.$thisOccurance}" 48 | # echo "post: '$tempLinePost'" 49 | doAddition="${tempLinePost#+[[:digit:]]}" 50 | # echo "do: '$doAddition'" 51 | if [ "$doAddition" != "$tempLinePost" ] 52 | then 53 | addition="${tempLinePost#+}" 54 | # echo "add: '$addition'" 55 | addition="${addition:0:1}" 56 | # echo "add: '$addition'" 57 | 58 | newVal=$val 59 | isdigit.sh "$addition" 60 | 61 | if [ "$?" == "0" ] 62 | then 63 | newVal=$(( val + addition )) 64 | # echo "adding '$newVal'..." 65 | tempLine=${tempLine/asdf.Temp.$thisOccurance+[[:digit:]]/$newVal} 66 | else 67 | # echo "replacing 'asdf.Temp.$thisOccurance' with '$val'" 68 | tempLine=${tempLine/asdf.Temp.$thisOccurance/$val} 69 | fi 70 | else 71 | # echo "replacing 'asdf.Temp.$thisOccurance' with '$val'" 72 | tempLine=${tempLine/asdf.Temp.$thisOccurance/$val} 73 | fi 74 | done 75 | 76 | 77 | echo "$tempLine" 78 | # echo "${line//$variable/$val}" 79 | done 80 | 81 | -------------------------------------------------------------------------------- /oddities.txt: -------------------------------------------------------------------------------- 1 | avr-objdump -j .data -t _BUILD/LCDdirectLVDS.elf: 2 | SYMBOL TABLE: 3 | 00800060 l d .data 00000000 .data 4 | 008000d4 l O .data 0000000c CSWTCH.86 5 | 008000c4 l O .data 00000010 spriteQ 6 | 00800064 l O .data 00000010 spriteLEAF 7 | 00800084 l O .data 00000010 spriteGOOMBA 8 | 008000a4 l O .data 00000010 spriteDEADGOOMBA 9 | 008000b4 l O .data 00000010 spriteSOLID 10 | 00800094 l O .data 00000010 spriteFLOWER 11 | 00800074 l O .data 00000010 spriteCOIN 12 | 008000e0 g O .data 00000006 LeafCamMotion 13 | 008000e6 g O .data 00000006 LeafMotion 14 | 00800062 g O .data 00000002 p_nowSprite 15 | 008000f2 g O .data 00000006 DefaultMotion 16 | 00800060 g O .data 00000001 updateFrame 17 | 008000fe g .data 00000000 __data_end 18 | 008000ec g O .data 00000006 DefaultCamMotion 19 | 00800061 g O .data 00000001 nowIsReward 20 | 008000f8 g O .data 00000006 NadaMotion 21 | 008000fe g .data 00000000 _edata 22 | 00800060 g .data 00000000 __data_start 23 | 24 | 25 | What about Biggie, and 1up?! 26 | 27 | 28 | was static sprite_t 29 | now const __flash sprite_t 30 | 31 | Changing *only* (Biggie, 1up, and) Question 32 | No errors while building 33 | Though not functional (Q) 34 | 35 | 36 | Moving to const __flash increases codesize by roughly the same amount as 37 | the decrease in memory requirement (?!) 38 | Odd, no? Since, if it's a loaded-value in memory, then wouldn't it require 39 | code-space to store the value to load? 40 | 41 | Run into this before... duh. It is in flash, either way, but not listed in 42 | .text since flash-usage is the sum of .data and .text 43 | 44 | BUT 45 | Changing over remaining (three) sprites should've had no effect on 46 | flash-usage, yet it jumped from 6260 to 6322 or 62 bytes... 47 | while .data decreased from 100 to 52 or 48 bytes... 48 | 49 | Changing *one* sprite inbetween seemed to be +16B and -16B respectively 50 | But changing one *earlier* seemed to be +18 and -16... 51 | 52 | Dunno. 53 | 54 | 55 | Moved motion_t's to flash: 56 | Now 6340Bytes burnt, only 18B increase (!?) 57 | .data decreased from 52 to 22 or 30B, as expected 58 | -------------------------------------------------------------------------------- /dualPixelThoughts.txt: -------------------------------------------------------------------------------- 1 | ATxmega16D4: 2 | Minimum pulse-width is 1 CPU-cyc. 3 | 4 | 5 | 6 | 7 | 8 | The AT90PWM316: 9 | has three PSC's, each with 2 complementary outputs 10 | (PSC2 has 4 outputs, but multiplexed) 11 | (no PSCR) 12 | (Also has two timers, which can NOT run off the PLL.) 13 | 14 | That's 6 LVDS signals available. 15 | FPD-Link (dual-pixel) requires 7 16 | (8 signals, but the clock is doubled) 17 | 18 | SIMPLE implementation: 19 | duplicate even and odd pixels (use the same channels, could use the 20 | old design with even the ATtiny861) 21 | Benefit: Fewer horizontal pixels to worry about than single-pixel 22 | Actually, won't this *reduce* resolution since there's less time 23 | for CPU calcs during a horizontal frame? 24 | Faster Refresh... 25 | Dual-Pixel: 26 | The only benefits I can think of are increased colors via high-res 27 | dithering. 28 | 29 | Color-dithering: 30 | Could improve color-dithering... e.g. alternate col-colors at full 31 | resolution (even = red, odd = brown, average = reddish-brown) 32 | Alpha Channel! 33 | Two separte frame-buffers, overlapping... 34 | (This could be implemented currently via row-alternating. 35 | Row + Col control = 4 values = 2bit...) 36 | A) Background + alpha-image. e.g.: 37 | Alpha (B=Background Color, I=Image Color) 38 | E O 0 1 2 3 4??? 39 | row0 # # B B B B I B I I I I 40 | row1 # # B B B I B I I B I I 41 | 42 | B) Background + two alpha-images? 43 | Alpha: 0,0 0,1 1,1 1,2 2,2 44 | B B B B 2 B 2 1 2 1 45 | B B B 1 B 1 B 2 1 2 46 | (Not really sure how actual "alpha channels" work... what happens 47 | when two images both have 100% opacity...? One must be "on top"?) 48 | 49 | Realistically: 50 | dual-pixel via PWM316 may not have any other benefits... 51 | 52 | 53 | ??? 54 | PLL can be synced at 7x? 55 | Then 8-bit Timer-Counter could be used for pix-clk...? 56 | 57 | 58 | 59 | Random: 60 | dual-pixel LVDS-receivers may be even more likely to sync at these 61 | extraordinarily low bit-rates, since they inherently sync at lower rates 62 | anyhow normally... (by design) 63 | -------------------------------------------------------------------------------- /hsyncCalcs.txt: -------------------------------------------------------------------------------- 1 | JiggyFour:~/cTools/macroExpansions meh$ ./macroSearch.sh 2 | TCNTER_SOURCE_OVERFLOW_VAL 3 | ~/_avrProjects/LCDdirectLVDS/95-lookingIntoFunctionWriteColorDelays/_BUILD/main.o 4 | #define TCNTER_SOURCE_OVERFLOW_VAL HSYNC_TIMER_OCRVAL 5 | #define HSYNC_TIMER_OCRVAL (HSYNC_TIMER_TCNTS-1) 6 | #define HSYNC_TIMER_TCNTS TOTAL_CYC_COUNT_DIV64 7 | #define TOTAL_CYC_COUNT_DIV64 (ROUND_UP_TO(TOTAL_CYC_COUNT, (64*7))/64) 8 | #define TOTAL_CYC_COUNT ((0UL + ROW_CALCULATION_CYCS + DISPLAY_CYC_COUNT)) 9 | #define ROW_CALCULATION_CYCS 0UL 10 | #define DISPLAY_CYC_COUNT (MAKELONG(T_Hlow_CYC) + MAKELONG(T_HD_CYC) + 11 | MAKELONG(T_DE_CYC) + MAKELONG(T_DH_CYC)) 12 | #define T_Hlow_CYC DOTS_TO_CYC(H_LOW_DOTS) 13 | #define H_LOW_DOTS 100 14 | #define T_HD_CYC DOTS_TO_CYC(HD_DOTS) 15 | #define HD_DOTS 5 16 | #define T_DE_CYC DOTS_TO_CYC(DE_ACTIVE_DOTS) 17 | #define DE_ACTIVE_DOTS 840 18 | #define T_DH_CYC DOTS_TO_CYC(DH_DOTS) 19 | #define DH_DOTS 0 20 | #define ROUND_UP_TO(minVal,roundTo) 21 | ((((minVal)+((roundTo)-1))/(roundTo))*(roundTo)) 22 | #define DOTS_TO_CYC(dots) 23 | (((((MAKELONG(dots))<<3)-dots)<<(DESHIFT(LVDS_PRESCALER))) >> 2) 24 | #define LVDS_PRESCALER 8 25 | #define MAKELONG(value) ((value) + 0L) 26 | #define DESHIFT(n) ( (n & (1<<15)) ? 15 : (n & (1<<14)) ? 14 : (n & 27 | (1<<13)) ? 13 : (n & (1<<12)) ? 12 : (n & (1<<11)) ? 11 : (n & (1<<10)) ? 28 | 10 : (n & (1<<9)) ? 9 : (n & (1<<8)) ? 8 : (n & 128) ? 7 : (n & 64) ? 6 : 29 | (n & 32) ? 5 : (n & 16) ? 4 : (n & 8) ? 3 : (n & 4) ? 2 : (n & 2) ? 1 : (n 30 | & 1) ? 0 : 0 ) 31 | 32 | ##################################### 33 | Determining intermediate macro-values 34 | ##################################### 35 | 'LVDS_PRESCALER' = 8 36 | 'DH_DOTS' = 0 37 | 'T_DH_CYC' = 0 38 | 'DE_ACTIVE_DOTS' = 840 39 | 'T_DE_CYC' = 11760 40 | 'HD_DOTS' = 5 41 | 'T_HD_CYC' = 70 42 | 'H_LOW_DOTS' = 100 43 | 'T_Hlow_CYC' = 1400 44 | 'DISPLAY_CYC_COUNT' = 13230 45 | 'ROW_CALCULATION_CYCS' = 0 46 | 'TOTAL_CYC_COUNT' = 13230 47 | 'TOTAL_CYC_COUNT_DIV64' = 210 48 | 'HSYNC_TIMER_TCNTS' = 210 49 | 'HSYNC_TIMER_OCRVAL' = 209 50 | 'TCNTER_SOURCE_OVERFLOW_VAL' = 209 51 | 52 | NOTE: when assigning a variable... 53 | e.g. int16_t i = (1<<16)>>3... 54 | Apparently it assumes all intermediate steps 55 | are of the type declared... 56 | ((int16_t)1)<<16 = 0!!! 57 | 0>>3 = 0 58 | THAT WILL NOT BE IMMEDIATELY VISIBLE HERE 59 | So Be Careful. 60 | 61 | -------------------------------------------------------------------------------- /_tools/configParser2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | # THE IDEA: 5 | # If we preprocess mainConfig.h before running 'make' on the project 6 | # we can conditionally include stuff as needed 7 | 8 | #OLD: 9 | # A good test: 'configParser.sh TRUE' 10 | # Also: __REGISTER_PREFIX__ (defined, with no value) 11 | 12 | #macroddToFind="$1" 13 | 14 | #if [ "$1" == "" ] 15 | #then 16 | # echo "Usage: 'configParser.sh '" 17 | # exit 1 18 | #fi 19 | 20 | ppFile="_BUILD/mainConfig.preprocessed" 21 | cfgFile="mainConfig.h" 22 | 23 | 24 | avr-gcc -o "$ppFile" -E -dM -D'TRUE=1' -D'FALSE=0' "$cfgFile" 25 | 26 | 27 | if [ "$?" != "0" ] 28 | then 29 | echo "preprocessing of mainConfig.h failed..." 30 | exit 1 31 | fi 32 | 33 | 34 | #lines="`grep "$macroToFind" "$ppFile"`" 35 | 36 | #if [ "$?" != "0" ] 37 | #then 38 | # echo "'$macroToFind' Not Defined" 39 | # exit 1 40 | #fi 41 | 42 | 43 | echo "### THIS FILE IS AUTOMATICALLY GENERATED ###" 44 | echo "# Best to only refer to actual definitions in mainConfig.h" 45 | echo "# As opposed to those generated by other #includes" 46 | echo "# Since those aren't tested when automatically regenerating this file" 47 | echo "#" 48 | echo "# So, in your makefile you can do conditionals such as:" 49 | echo "# 'ifeq \"\$(MAKE_MAINCONFIG__FB_QUESTION)\" \"TRUE\"'" 50 | echo "# and it will be true if mainConfig.h has '#define FB_QUESTION TRUE'" 51 | echo "" 52 | 53 | IFS=" 54 | " 55 | #definitionFound=0 56 | #for line in $lines 57 | while [ 1 ] 58 | do 59 | read -r line <&10 || break 60 | 61 | 62 | postDef="${line#"#define "}" 63 | 64 | if [ "$postDef" != "$line" ] 65 | then 66 | 67 | # echo "Found Definition: '$line'" 68 | macro="${postDef%% *}" 69 | # echo " Macro Name: '$macro'" 70 | value="${postDef#* }" 71 | # echo " Value: '$value'" 72 | 73 | 74 | #Can't do this with function-like macros... 75 | # So, for now, just exclude them. 76 | if [ "${macro#*(}" != "$macro" ] 77 | then 78 | continue 79 | fi 80 | 81 | 82 | 83 | # echo "Found Definition: '$line' with value: '$value'" 84 | # '$value' here should not be in quotes... apparently 85 | # Otherwise, e.g. ifeq "$(MACRO)" "TRUE" doesn't work 86 | echo "MAKE_MAINCONFIG__$macro:=$value" 87 | # definitionFound=$((definitionFound+1)) 88 | # else 89 | # echo "Found something else: '$line'" 90 | fi 91 | done 10<"$ppFile" 92 | 93 | #if [ "$definitionFound" != "0" ] 94 | #then 95 | # exit 0 96 | #else 97 | # exit 1 98 | #fi 99 | 100 | 101 | #while [ 1 ] 102 | #do 103 | # read -r line <&10 || break 104 | 105 | #done 10<"$ppFile" 106 | 107 | exit 0 108 | -------------------------------------------------------------------------------- /_commonCode_localized/lcdStuff/0.80ncfDD6651/README.TXT: -------------------------------------------------------------------------------- 1 | This is only a tiny fraction of the overall code. In fact, ultimately, this 2 | is intended to be more generalized for graphic-LCDs (using H/V/DE timing). 3 | 4 | As it stands, it currently contains notes from three (or more?) separate 5 | projects, though as of this more-generalized version has only for certain 6 | been used in one... it is, as I recall, very-much compatible with all, 7 | with a few not-all-yet-written wrapper-functions. Notes are highly out of 8 | order, and the vast-majority of the code here is commented/#if 0'ed out. 9 | Actually, besides DE, this needn't be specific to LCDs at all, could serve 10 | just as well for VGA, etc. 11 | 12 | * LCDdirect - The original project 13 | Atmel 90s8515 AVR on a 30MHz crystal /2 14 | 15in desktop TFT 1024x768, removed from VGA converter-board 15 | dual-pixel, individual pins for each signal, ~40 wires (NOT LVDS) 16 | ~ 32 pixels by 32 pixels stretched across the full screen, 8 colors 17 | ~ 30Hz refresh 18 | * LCDdirectLVDS - The second and revisited project 19 | Atmel ATtiny861 using internal R/C oscillator at 16MHz, 512B RAM 20 | 12.1in laptop TFT LCD 1024x768 21 | Samsung LTN121X1-L02 from a dead iBook G3 22 | LVDS/FPD-Link, single-pixel (4 signals on 8 wires) 23 | 2x 74LS86 XOR chips used for LVDS level-conversion 24 | ~ 20Hz refresh using the PWM PLL at ~128MHz, ~32x32 pixels stretched 25 | ~ 1Hz refresh at ~341x768 pixels, stretched, 48 colors. 26 | * SDRAMthing - Unrelated project, just using the LCD as a test... 27 | Atmel 90s8515 directly-connected to a 128MB SDRAM DIMM 28 | All FPD-Link signals for a single frame were loaded into the SDRAM and 29 | burst out to the LVDS display repeatedly 30 | 1024x768 resolution, full-color (6bits per R/G/B) 31 | ~1Hz refresh (but reloading the SDRAM for a new image takes about 2 32 | minutes!) 33 | 34 | LCDdirectLVDS uses this exact code, with wrapper-functions for timing, etc. 35 | This file shouldn't contain that LVDS-specific information, but I haven't 36 | broken the files up yet. 37 | 38 | Some other notes: 39 | This is intended, as it stands (bad coding practices, I know) to be 40 | #included in main... prior to its inclusion should be project-specific 41 | functions that this calls (e.g. loadData(), drawPix(), DE_DotDelay()...). 42 | Yeah, it'd be nice to use function-pointers and whatnot, but we're talking 43 | about 8KB of ROM and only 512Bytes of RAM (most of which is used for 44 | display data)... every byte counts... inlines are used almost exclusively, 45 | or macros. 46 | Most of the stuff, again, is commented-out... but was left for examples. 47 | Who knows, maybe it'll be useful to someone as-is. But the rest of the code 48 | (the real stuff) should be going up sooner or later. 49 | 50 | And, as it stands, figuring out this git thing was quite exhausting and 51 | dang-near magic when it worked, so it may be a while until the rest of the 52 | code gets posted. 53 | 54 | For sure contact me if you're interested! 55 | 56 | ---- 57 | Licensing: Ugh I hate having this shit thrown in my face all the time, so 58 | here's the deal. Be Respectful and Concientious and unless you're a 59 | corporation or other organization, you're free to use and modify it. 60 | Otherwise contact me. Cash and beer supplies are running low, so I'm always 61 | open to donations! 62 | 63 | -------------------------------------------------------------------------------- /_displays/displayNotes.txt: -------------------------------------------------------------------------------- 1 | as-of v91: 2 | So far I've implemented 5 functionally-different displays: 3 | * Samsung LTN121X1-L02 4 | (*TWO* models, with different revisions of the LVDS-receiver chip) 5 | FPD-Link, 12.1in, 1024x768, DE-Only 6 | * Chi Mei N121X5-L03(?) 7 | FPD-Link, 12.1in, 1024x768, DE-Only 8 | * BOEhydis HT12X21-240 9 | FPD-Link, 12.1in, 1024x768, DE-Only 10 | * Sony ACX705AKM-7 11 | 9-bit parallel, ~2in, 240x160 12 | (3bits per color; separate Hsync, Vsync, and pixel-clock signals) 13 | 14 | 15 | So far, only *one* display has never worked with this system: 16 | * IDTech IAXG01 17 | FPD-Link, 12.1in, 1024x768, NOT DE-Only 18 | (This display has the following note in the data-sheet: 19 | "When there are invalid timing, Display appears black pattern. 20 | Synchronous Signal Defects and enter Auto Refresh for LCD Module 21 | protection Mode.") 22 | (Actually, I believe there was a time I had *something* displayed on 23 | this screen, but it was LONG ago, and it never did sync up... It has 24 | since bit-the-bucket.) 25 | 26 | 27 | IMPLEMENTING A NEW DISPLAY: 28 | see, e.g., samsungLTN121X1_v6651.h which has different DE_ACTIVE_DOTS 29 | for different modes... 30 | Ideally, every drawing function would match *exactly* the 31 | timing-parameters given in the selected _displays/ file, then things'd 32 | work regardless of the drawing-function... but AS-YET that's not yet 33 | possible. Some drawing-functions take longer than others (especially in 34 | BLUE_TESTING) 35 | 36 | 37 | 38 | SAMSUNG LTN121X1-L02: 39 | Two models have been implemented in this system, with the following 40 | receiver-chips: 41 | LXD91810 VS242AC 42 | LXD91810 VS252AG 43 | 44 | As I recall, the AC required a faster bit-rate to sync-up properly 45 | (notes exist elsewhere) 46 | Thus, (now) the *default* setting is the fastest bit-rate possible for 47 | this system (16MHz * 8PLL = 128Mbps, BUT the CPU frequency can be 48 | nearly-doubled via OSCCAL, so it's *nearly* 256Mbps(?!) 49 | 50 | 51 | This display is nice in that it seems highly tolerant of very strange 52 | timing-signals; huge horizontal-front-porches and 53 | very slow refresh-rates... 54 | 55 | * Works Well With rowSegBuffer 56 | * Has *visible* refresh: 57 | * Flickers at medium refresh-rates (e.g. 10Hz) 58 | * Shows a visible scrolling-black line when refreshing at 59 | extremely-low refresh-rates (e.g. 1/5Hz with rowSegBuffer) 60 | 61 | Apparently continues displaying dots at the end of DE (and/or repeats 62 | those from the previous row?) 63 | Nada + disableGreen -> green even though DE_ACTIVE_DOTS is too short. 64 | 65 | Has a tendancy to repeat previous row if (?)... 66 | Timing ain't right...? 67 | 68 | CHI MEI N121X5: 69 | Has NO VISIBLE REFRESH (WOW!) 70 | 71 | BOEHYDIS HT12X21: 72 | Visibility of refresh is *significantly* diminished compared to Samsung 73 | BLUE_DIAG_BAR_SCROLL (in 66.51-63!) is no visible refresh AT ALL 74 | 75 | Apparently stops displaying dots at the end of DE... 76 | (Nada + disableGreen -> green on the LTN, but Black here...) 77 | 78 | SONY ACK705AKM-7: 79 | This display DOES NOT HAVE a Data-Enable input. 80 | Thus, it relies on a specific number of pixel-clocks from the edge of 81 | the Hsync until data is displayed at the first pixel. 82 | 83 | THUS: It has been found that the MCK (pixel-clock) input is tolerant of 84 | varying pulse-widths (edge-sensitive, not timing-sensitive) and so 85 | bit-banging of the pixel-clock has been implemented. 86 | 87 | 88 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/test/main.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include _HEARTBEAT_HEADER_ 10 | 11 | void main(void) 12 | { 13 | 14 | init_heartBeat(); 15 | 16 | while(1) 17 | { 18 | heartUpdate(); 19 | } 20 | } 21 | 22 | /* mehPL: 23 | * I would love to believe in a world where licensing shouldn't be 24 | * necessary; where people would respect others' work and wishes, 25 | * and give credit where it's due. 26 | * A world where those who find people's work useful would at least 27 | * send positive vibes--if not an email. 28 | * A world where we wouldn't have to think about the potential 29 | * legal-loopholes that others may take advantage of. 30 | * 31 | * Until that world exists: 32 | * 33 | * This software and associated hardware design is free to use, 34 | * modify, and even redistribute, etc. with only a few exceptions 35 | * I've thought-up as-yet (this list may be appended-to, hopefully it 36 | * doesn't have to be): 37 | * 38 | * 1) Please do not change/remove this licensing info. 39 | * 2) Please do not change/remove others' credit/licensing/copyright 40 | * info, where noted. 41 | * 3) If you find yourself profiting from my work, please send me a 42 | * beer, a trinket, or cash is always handy as well. 43 | * (Please be considerate. E.G. if you've reposted my work on a 44 | * revenue-making (ad-based) website, please think of the 45 | * years and years of hard work that went into this!) 46 | * 4) If you *intend* to profit from my work, you must get my 47 | * permission, first. 48 | * 5) No permission is given for my work to be used in Military, NSA, 49 | * or other creepy-ass purposes. No exceptions. And if there's 50 | * any question in your mind as to whether your project qualifies 51 | * under this category, you must get my explicit permission. 52 | * 53 | * The open-sourced project this originated from is ~98% the work of 54 | * the original author, except where otherwise noted. 55 | * That includes the "commonCode" and makefiles. 56 | * Thanks, of course, should be given to those who worked on the tools 57 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 58 | * I'm certain many others. 59 | * And, as well, to the countless coders who've taken time to post 60 | * solutions to issues I couldn't solve, all over the internets. 61 | * 62 | * 63 | * I'd love to hear of how this is being used, suggestions for 64 | * improvements, etc! 65 | * 66 | * The creator of the original code and original hardware can be 67 | * contacted at: 68 | * 69 | * EricWazHung At Gmail Dotcom 70 | * 71 | * This code's origin (and latest versions) can be found at: 72 | * 73 | * https://code.google.com/u/ericwazhung/ 74 | * 75 | * The site associated with the original open-sourced project is at: 76 | * 77 | * https://sites.google.com/site/geekattempts/ 78 | * 79 | * If any of that ever changes, I will be sure to note it here, 80 | * and add a link at the pages above. 81 | * 82 | * This license added to the original file located at: 83 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/test/main.c 84 | * 85 | * (Wow, that's a lot longer than I'd hoped). 86 | * 87 | * Enjoy! 88 | */ 89 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testDMS/main.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include _HEARTBEAT_HEADER_ 10 | 11 | void main(void) 12 | { 13 | 14 | init_heartBeat(); 15 | 16 | while(1) 17 | { 18 | heartUpdate(); 19 | } 20 | } 21 | 22 | /* mehPL: 23 | * I would love to believe in a world where licensing shouldn't be 24 | * necessary; where people would respect others' work and wishes, 25 | * and give credit where it's due. 26 | * A world where those who find people's work useful would at least 27 | * send positive vibes--if not an email. 28 | * A world where we wouldn't have to think about the potential 29 | * legal-loopholes that others may take advantage of. 30 | * 31 | * Until that world exists: 32 | * 33 | * This software and associated hardware design is free to use, 34 | * modify, and even redistribute, etc. with only a few exceptions 35 | * I've thought-up as-yet (this list may be appended-to, hopefully it 36 | * doesn't have to be): 37 | * 38 | * 1) Please do not change/remove this licensing info. 39 | * 2) Please do not change/remove others' credit/licensing/copyright 40 | * info, where noted. 41 | * 3) If you find yourself profiting from my work, please send me a 42 | * beer, a trinket, or cash is always handy as well. 43 | * (Please be considerate. E.G. if you've reposted my work on a 44 | * revenue-making (ad-based) website, please think of the 45 | * years and years of hard work that went into this!) 46 | * 4) If you *intend* to profit from my work, you must get my 47 | * permission, first. 48 | * 5) No permission is given for my work to be used in Military, NSA, 49 | * or other creepy-ass purposes. No exceptions. And if there's 50 | * any question in your mind as to whether your project qualifies 51 | * under this category, you must get my explicit permission. 52 | * 53 | * The open-sourced project this originated from is ~98% the work of 54 | * the original author, except where otherwise noted. 55 | * That includes the "commonCode" and makefiles. 56 | * Thanks, of course, should be given to those who worked on the tools 57 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 58 | * I'm certain many others. 59 | * And, as well, to the countless coders who've taken time to post 60 | * solutions to issues I couldn't solve, all over the internets. 61 | * 62 | * 63 | * I'd love to hear of how this is being used, suggestions for 64 | * improvements, etc! 65 | * 66 | * The creator of the original code and original hardware can be 67 | * contacted at: 68 | * 69 | * EricWazHung At Gmail Dotcom 70 | * 71 | * This code's origin (and latest versions) can be found at: 72 | * 73 | * https://code.google.com/u/ericwazhung/ 74 | * 75 | * The site associated with the original open-sourced project is at: 76 | * 77 | * https://sites.google.com/site/geekattempts/ 78 | * 79 | * If any of that ever changes, I will be sure to note it here, 80 | * and add a link at the pages above. 81 | * 82 | * This license added to the original file located at: 83 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testDMS/main.c 84 | * 85 | * (Wow, that's a lot longer than I'd hoped). 86 | * 87 | * Enjoy! 88 | */ 89 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testPWM161/main.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include _HEARTBEAT_HEADER_ 10 | 11 | void main(void) 12 | { 13 | 14 | init_heartBeat(); 15 | 16 | while(1) 17 | { 18 | heartUpdate(); 19 | } 20 | } 21 | 22 | /* mehPL: 23 | * I would love to believe in a world where licensing shouldn't be 24 | * necessary; where people would respect others' work and wishes, 25 | * and give credit where it's due. 26 | * A world where those who find people's work useful would at least 27 | * send positive vibes--if not an email. 28 | * A world where we wouldn't have to think about the potential 29 | * legal-loopholes that others may take advantage of. 30 | * 31 | * Until that world exists: 32 | * 33 | * This software and associated hardware design is free to use, 34 | * modify, and even redistribute, etc. with only a few exceptions 35 | * I've thought-up as-yet (this list may be appended-to, hopefully it 36 | * doesn't have to be): 37 | * 38 | * 1) Please do not change/remove this licensing info. 39 | * 2) Please do not change/remove others' credit/licensing/copyright 40 | * info, where noted. 41 | * 3) If you find yourself profiting from my work, please send me a 42 | * beer, a trinket, or cash is always handy as well. 43 | * (Please be considerate. E.G. if you've reposted my work on a 44 | * revenue-making (ad-based) website, please think of the 45 | * years and years of hard work that went into this!) 46 | * 4) If you *intend* to profit from my work, you must get my 47 | * permission, first. 48 | * 5) No permission is given for my work to be used in Military, NSA, 49 | * or other creepy-ass purposes. No exceptions. And if there's 50 | * any question in your mind as to whether your project qualifies 51 | * under this category, you must get my explicit permission. 52 | * 53 | * The open-sourced project this originated from is ~98% the work of 54 | * the original author, except where otherwise noted. 55 | * That includes the "commonCode" and makefiles. 56 | * Thanks, of course, should be given to those who worked on the tools 57 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 58 | * I'm certain many others. 59 | * And, as well, to the countless coders who've taken time to post 60 | * solutions to issues I couldn't solve, all over the internets. 61 | * 62 | * 63 | * I'd love to hear of how this is being used, suggestions for 64 | * improvements, etc! 65 | * 66 | * The creator of the original code and original hardware can be 67 | * contacted at: 68 | * 69 | * EricWazHung At Gmail Dotcom 70 | * 71 | * This code's origin (and latest versions) can be found at: 72 | * 73 | * https://code.google.com/u/ericwazhung/ 74 | * 75 | * The site associated with the original open-sourced project is at: 76 | * 77 | * https://sites.google.com/site/geekattempts/ 78 | * 79 | * If any of that ever changes, I will be sure to note it here, 80 | * and add a link at the pages above. 81 | * 82 | * This license added to the original file located at: 83 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testPWM161/main.c 84 | * 85 | * (Wow, that's a lot longer than I'd hoped). 86 | * 87 | * Enjoy! 88 | */ 89 | -------------------------------------------------------------------------------- /__use_Local_CommonCode.mk: -------------------------------------------------------------------------------- 1 | #/* mehPL: 2 | # * This is Open Source, but NOT GPL. I call it mehPL. 3 | # * I'm not too fond of long licenses at the top of the file. 4 | # * Please see the bottom. 5 | # * Enjoy! 6 | # */ 7 | # 8 | # 9 | ### BEST NOT MODIFY THIS FILE, use 'make (de)localize' instead 10 | # When this is 1, we'll use the files in 11 | # _commonCode_localized 12 | # instead of the main _commonCode directory 13 | # Its value can be overriden by e.g. 'make ... LOCAL=0' 14 | LOCAL=1 15 | #/* mehPL: 16 | # * I would love to believe in a world where licensing shouldn't be 17 | # * necessary; where people would respect others' work and wishes, 18 | # * and give credit where it's due. 19 | # * A world where those who find people's work useful would at least 20 | # * send positive vibes--if not an email. 21 | # * A world where we wouldn't have to think about the potential 22 | # * legal-loopholes that others may take advantage of. 23 | # * 24 | # * Until that world exists: 25 | # * 26 | # * This software and associated hardware design is free to use, 27 | # * modify, and even redistribute, etc. with only a few exceptions 28 | # * I've thought-up as-yet (this list may be appended-to, hopefully it 29 | # * doesn't have to be): 30 | # * 31 | # * 1) Please do not change/remove this licensing info. 32 | # * 2) Please do not change/remove others' credit/licensing/copyright 33 | # * info, where noted. 34 | # * 3) If you find yourself profiting from my work, please send me a 35 | # * beer, a trinket, or cash is always handy as well. 36 | # * (Please be considerate. E.G. if you've reposted my work on a 37 | # * revenue-making (ad-based) website, please think of the 38 | # * years and years of hard work that went into this!) 39 | # * 4) If you *intend* to profit from my work, you must get my 40 | # * permission, first. 41 | # * 5) No permission is given for my work to be used in Military, NSA, 42 | # * or other creepy-ass purposes. No exceptions. And if there's 43 | # * any question in your mind as to whether your project qualifies 44 | # * under this category, you must get my explicit permission. 45 | # * 46 | # * The open-sourced project this originated from is ~98% the work of 47 | # * the original author, except where otherwise noted. 48 | # * That includes the "commonCode" and makefiles. 49 | # * Thanks, of course, should be given to those who worked on the tools 50 | # * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 51 | # * I'm certain many others. 52 | # * And, as well, to the countless coders who've taken time to post 53 | # * solutions to issues I couldn't solve, all over the internets. 54 | # * 55 | # * 56 | # * I'd love to hear of how this is being used, suggestions for 57 | # * improvements, etc! 58 | # * 59 | # * The creator of the original code and original hardware can be 60 | # * contacted at: 61 | # * 62 | # * EricWazHung At Gmail Dotcom 63 | # * 64 | # * This code's origin (and latest versions) can be found at: 65 | # * 66 | # * https://code.google.com/u/ericwazhung/ 67 | # * 68 | # * The site associated with the original open-sourced project is at: 69 | # * 70 | # * https://sites.google.com/site/geekattempts/ 71 | # * 72 | # * If any of that ever changes, I will be sure to note it here, 73 | # * and add a link at the pages above. 74 | # * 75 | # * This license added to the original file located at: 76 | # * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/__use_Local_CommonCode.mk 77 | # * 78 | # * (Wow, that's a lot longer than I'd hoped). 79 | # * 80 | # * Enjoy! 81 | # */ 82 | -------------------------------------------------------------------------------- /_old/clockInsensitivityTesting.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | //a/0 v24, this allows the clock signal to be affected by DT 20 | // if it works, we'll be able to use Green on /OC1B 21 | // Sort of works... Blues with DT=0 are good, timing's not screwed 22 | // but blues with DT!=0 are damn-near black except for a light pixel 23 | // before-hand 24 | //a/0 v26, this is now required for Green IN MODES OTHER THAN DRAWPIX 25 | // Not sure where that note makes sense... 26 | // a/o 56-36-3ish it's been removed completely. 27 | //DO NOT define CLOCK_INSENSITIVITY_TESTING TRUE 28 | 29 | 30 | /* mehPL: 31 | * I would love to believe in a world where licensing shouldn't be 32 | * necessary; where people would respect others' work and wishes, 33 | * and give credit where it's due. 34 | * A world where those who find people's work useful would at least 35 | * send positive vibes--if not an email. 36 | * A world where we wouldn't have to think about the potential 37 | * legal-loopholes that others may take advantage of. 38 | * 39 | * Until that world exists: 40 | * 41 | * This software and associated hardware design is free to use, 42 | * modify, and even redistribute, etc. with only a few exceptions 43 | * I've thought-up as-yet (this list may be appended-to, hopefully it 44 | * doesn't have to be): 45 | * 46 | * 1) Please do not change/remove this licensing info. 47 | * 2) Please do not change/remove others' credit/licensing/copyright 48 | * info, where noted. 49 | * 3) If you find yourself profiting from my work, please send me a 50 | * beer, a trinket, or cash is always handy as well. 51 | * (Please be considerate. E.G. if you've reposted my work on a 52 | * revenue-making (ad-based) website, please think of the 53 | * years and years of hard work that went into this!) 54 | * 4) If you *intend* to profit from my work, you must get my 55 | * permission, first. 56 | * 5) No permission is given for my work to be used in Military, NSA, 57 | * or other creepy-ass purposes. No exceptions. And if there's 58 | * any question in your mind as to whether your project qualifies 59 | * under this category, you must get my explicit permission. 60 | * 61 | * The open-sourced project this originated from is ~98% the work of 62 | * the original author, except where otherwise noted. 63 | * That includes the "commonCode" and makefiles. 64 | * Thanks, of course, should be given to those who worked on the tools 65 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 66 | * I'm certain many others. 67 | * And, as well, to the countless coders who've taken time to post 68 | * solutions to issues I couldn't solve, all over the internets. 69 | * 70 | * 71 | * I'd love to hear of how this is being used, suggestions for 72 | * improvements, etc! 73 | * 74 | * The creator of the original code and original hardware can be 75 | * contacted at: 76 | * 77 | * EricWazHung At Gmail Dotcom 78 | * 79 | * This code's origin (and latest versions) can be found at: 80 | * 81 | * https://code.google.com/u/ericwazhung/ 82 | * 83 | * The site associated with the original open-sourced project is at: 84 | * 85 | * https://sites.google.com/site/geekattempts/ 86 | * 87 | * If any of that ever changes, I will be sure to note it here, 88 | * and add a link at the pages above. 89 | * 90 | * This license added to the original file located at: 91 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_old/clockInsensitivityTesting.c 92 | * 93 | * (Wow, that's a lot longer than I'd hoped). 94 | * 95 | * Enjoy! 96 | */ 97 | -------------------------------------------------------------------------------- /fb_question.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | #ifndef __FB_QUESTION_H__ 18 | #define __FB_QUESTION_H__ 19 | 20 | //#include "icons/iconPacking.h" //necessary here for sprite_t 21 | 22 | int8_t fbQuestion_update(void); 23 | 24 | void fbQuestion_hitDetected(void); 25 | 26 | 27 | //Putting this here causes some inclusion-loop difficulties 28 | //uint8_t getSpritePalette(sprite_t *p_thisSprite, uint8_t spritePhase, 29 | // uint8_t spriteRow); 30 | 31 | 32 | 33 | #endif 34 | /* mehPL: 35 | * I would love to believe in a world where licensing shouldn't be 36 | * necessary; where people would respect others' work and wishes, 37 | * and give credit where it's due. 38 | * A world where those who find people's work useful would at least 39 | * send positive vibes--if not an email. 40 | * A world where we wouldn't have to think about the potential 41 | * legal-loopholes that others may take advantage of. 42 | * 43 | * Until that world exists: 44 | * 45 | * This software and associated hardware design is free to use, 46 | * modify, and even redistribute, etc. with only a few exceptions 47 | * I've thought-up as-yet (this list may be appended-to, hopefully it 48 | * doesn't have to be): 49 | * 50 | * 1) Please do not change/remove this licensing info. 51 | * 2) Please do not change/remove others' credit/licensing/copyright 52 | * info, where noted. 53 | * 3) If you find yourself profiting from my work, please send me a 54 | * beer, a trinket, or cash is always handy as well. 55 | * (Please be considerate. E.G. if you've reposted my work on a 56 | * revenue-making (ad-based) website, please think of the 57 | * years and years of hard work that went into this!) 58 | * 4) If you *intend* to profit from my work, you must get my 59 | * permission, first. 60 | * 5) No permission is given for my work to be used in Military, NSA, 61 | * or other creepy-ass purposes. No exceptions. And if there's 62 | * any question in your mind as to whether your project qualifies 63 | * under this category, you must get my explicit permission. 64 | * 65 | * The open-sourced project this originated from is ~98% the work of 66 | * the original author, except where otherwise noted. 67 | * That includes the "commonCode" and makefiles. 68 | * Thanks, of course, should be given to those who worked on the tools 69 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 70 | * I'm certain many others. 71 | * And, as well, to the countless coders who've taken time to post 72 | * solutions to issues I couldn't solve, all over the internets. 73 | * 74 | * 75 | * I'd love to hear of how this is being used, suggestions for 76 | * improvements, etc! 77 | * 78 | * The creator of the original code and original hardware can be 79 | * contacted at: 80 | * 81 | * EricWazHung At Gmail Dotcom 82 | * 83 | * This code's origin (and latest versions) can be found at: 84 | * 85 | * https://code.google.com/u/ericwazhung/ 86 | * 87 | * The site associated with the original open-sourced project is at: 88 | * 89 | * https://sites.google.com/site/geekattempts/ 90 | * 91 | * If any of that ever changes, I will be sure to note it here, 92 | * and add a link at the pages above. 93 | * 94 | * This license added to the original file located at: 95 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/fb_question.h 96 | * 97 | * (Wow, that's a lot longer than I'd hoped). 98 | * 99 | * Enjoy! 100 | */ 101 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test.old/hfmTest.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 60, 79); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | for(i=0; i<=79; i++) 26 | { 27 | int output = hfm_nextOutput(&hfmThing); 28 | 29 | if(output) 30 | printf("#\n"); 31 | else 32 | printf("\n"); 33 | 34 | //hfm_setPower&hfmThing, i); 35 | //printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 36 | } 37 | 38 | printf("\n"); 39 | } 40 | /* mehPL: 41 | * I would love to believe in a world where licensing shouldn't be 42 | * necessary; where people would respect others' work and wishes, 43 | * and give credit where it's due. 44 | * A world where those who find people's work useful would at least 45 | * send positive vibes--if not an email. 46 | * A world where we wouldn't have to think about the potential 47 | * legal-loopholes that others may take advantage of. 48 | * 49 | * Until that world exists: 50 | * 51 | * This software and associated hardware design is free to use, 52 | * modify, and even redistribute, etc. with only a few exceptions 53 | * I've thought-up as-yet (this list may be appended-to, hopefully it 54 | * doesn't have to be): 55 | * 56 | * 1) Please do not change/remove this licensing info. 57 | * 2) Please do not change/remove others' credit/licensing/copyright 58 | * info, where noted. 59 | * 3) If you find yourself profiting from my work, please send me a 60 | * beer, a trinket, or cash is always handy as well. 61 | * (Please be considerate. E.G. if you've reposted my work on a 62 | * revenue-making (ad-based) website, please think of the 63 | * years and years of hard work that went into this!) 64 | * 4) If you *intend* to profit from my work, you must get my 65 | * permission, first. 66 | * 5) No permission is given for my work to be used in Military, NSA, 67 | * or other creepy-ass purposes. No exceptions. And if there's 68 | * any question in your mind as to whether your project qualifies 69 | * under this category, you must get my explicit permission. 70 | * 71 | * The open-sourced project this originated from is ~98% the work of 72 | * the original author, except where otherwise noted. 73 | * That includes the "commonCode" and makefiles. 74 | * Thanks, of course, should be given to those who worked on the tools 75 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 76 | * I'm certain many others. 77 | * And, as well, to the countless coders who've taken time to post 78 | * solutions to issues I couldn't solve, all over the internets. 79 | * 80 | * 81 | * I'd love to hear of how this is being used, suggestions for 82 | * improvements, etc! 83 | * 84 | * The creator of the original code and original hardware can be 85 | * contacted at: 86 | * 87 | * EricWazHung At Gmail Dotcom 88 | * 89 | * This code's origin (and latest versions) can be found at: 90 | * 91 | * https://code.google.com/u/ericwazhung/ 92 | * 93 | * The site associated with the original open-sourced project is at: 94 | * 95 | * https://sites.google.com/site/geekattempts/ 96 | * 97 | * If any of that ever changes, I will be sure to note it here, 98 | * and add a link at the pages above. 99 | * 100 | * This license added to the original file located at: 101 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test.old/hfmTest.c 102 | * 103 | * (Wow, that's a lot longer than I'd hoped). 104 | * 105 | * Enjoy! 106 | */ 107 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test.old2/hfmTest.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 60, 79); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | for(i=0; i<=79; i++) 26 | { 27 | int output = hfm_nextOutput(&hfmThing); 28 | 29 | //if(output) 30 | // printf("#\n"); 31 | //else 32 | // printf("\n"); 33 | 34 | //hfm_setPower&hfmThing, i); 35 | printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 36 | } 37 | 38 | printf("\n"); 39 | } 40 | /* mehPL: 41 | * I would love to believe in a world where licensing shouldn't be 42 | * necessary; where people would respect others' work and wishes, 43 | * and give credit where it's due. 44 | * A world where those who find people's work useful would at least 45 | * send positive vibes--if not an email. 46 | * A world where we wouldn't have to think about the potential 47 | * legal-loopholes that others may take advantage of. 48 | * 49 | * Until that world exists: 50 | * 51 | * This software and associated hardware design is free to use, 52 | * modify, and even redistribute, etc. with only a few exceptions 53 | * I've thought-up as-yet (this list may be appended-to, hopefully it 54 | * doesn't have to be): 55 | * 56 | * 1) Please do not change/remove this licensing info. 57 | * 2) Please do not change/remove others' credit/licensing/copyright 58 | * info, where noted. 59 | * 3) If you find yourself profiting from my work, please send me a 60 | * beer, a trinket, or cash is always handy as well. 61 | * (Please be considerate. E.G. if you've reposted my work on a 62 | * revenue-making (ad-based) website, please think of the 63 | * years and years of hard work that went into this!) 64 | * 4) If you *intend* to profit from my work, you must get my 65 | * permission, first. 66 | * 5) No permission is given for my work to be used in Military, NSA, 67 | * or other creepy-ass purposes. No exceptions. And if there's 68 | * any question in your mind as to whether your project qualifies 69 | * under this category, you must get my explicit permission. 70 | * 71 | * The open-sourced project this originated from is ~98% the work of 72 | * the original author, except where otherwise noted. 73 | * That includes the "commonCode" and makefiles. 74 | * Thanks, of course, should be given to those who worked on the tools 75 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 76 | * I'm certain many others. 77 | * And, as well, to the countless coders who've taken time to post 78 | * solutions to issues I couldn't solve, all over the internets. 79 | * 80 | * 81 | * I'd love to hear of how this is being used, suggestions for 82 | * improvements, etc! 83 | * 84 | * The creator of the original code and original hardware can be 85 | * contacted at: 86 | * 87 | * EricWazHung At Gmail Dotcom 88 | * 89 | * This code's origin (and latest versions) can be found at: 90 | * 91 | * https://code.google.com/u/ericwazhung/ 92 | * 93 | * The site associated with the original open-sourced project is at: 94 | * 95 | * https://sites.google.com/site/geekattempts/ 96 | * 97 | * If any of that ever changes, I will be sure to note it here, 98 | * and add a link at the pages above. 99 | * 100 | * This license added to the original file located at: 101 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test.old2/hfmTest.c 102 | * 103 | * (Wow, that's a lot longer than I'd hoped). 104 | * 105 | * Enjoy! 106 | */ 107 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/old/hfmTest.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 60, 79); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | for(i=0; i<=79; i++) 26 | { 27 | int output = hfm_nextOutput(&hfmThing); 28 | 29 | //if(output) 30 | // printf("#\n"); 31 | //else 32 | // printf("\n"); 33 | 34 | //hfm_setPower&hfmThing, i); 35 | printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 36 | } 37 | 38 | printf("\n"); 39 | } 40 | /* mehPL: 41 | * I would love to believe in a world where licensing shouldn't be 42 | * necessary; where people would respect others' work and wishes, 43 | * and give credit where it's due. 44 | * A world where those who find people's work useful would at least 45 | * send positive vibes--if not an email. 46 | * A world where we wouldn't have to think about the potential 47 | * legal-loopholes that others may take advantage of. 48 | * 49 | * Until that world exists: 50 | * 51 | * This software and associated hardware design is free to use, 52 | * modify, and even redistribute, etc. with only a few exceptions 53 | * I've thought-up as-yet (this list may be appended-to, hopefully it 54 | * doesn't have to be): 55 | * 56 | * 1) Please do not change/remove this licensing info. 57 | * 2) Please do not change/remove others' credit/licensing/copyright 58 | * info, where noted. 59 | * 3) If you find yourself profiting from my work, please send me a 60 | * beer, a trinket, or cash is always handy as well. 61 | * (Please be considerate. E.G. if you've reposted my work on a 62 | * revenue-making (ad-based) website, please think of the 63 | * years and years of hard work that went into this!) 64 | * 4) If you *intend* to profit from my work, you must get my 65 | * permission, first. 66 | * 5) No permission is given for my work to be used in Military, NSA, 67 | * or other creepy-ass purposes. No exceptions. And if there's 68 | * any question in your mind as to whether your project qualifies 69 | * under this category, you must get my explicit permission. 70 | * 71 | * The open-sourced project this originated from is ~98% the work of 72 | * the original author, except where otherwise noted. 73 | * That includes the "commonCode" and makefiles. 74 | * Thanks, of course, should be given to those who worked on the tools 75 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 76 | * I'm certain many others. 77 | * And, as well, to the countless coders who've taken time to post 78 | * solutions to issues I couldn't solve, all over the internets. 79 | * 80 | * 81 | * I'd love to hear of how this is being used, suggestions for 82 | * improvements, etc! 83 | * 84 | * The creator of the original code and original hardware can be 85 | * contacted at: 86 | * 87 | * EricWazHung At Gmail Dotcom 88 | * 89 | * This code's origin (and latest versions) can be found at: 90 | * 91 | * https://code.google.com/u/ericwazhung/ 92 | * 93 | * The site associated with the original open-sourced project is at: 94 | * 95 | * https://sites.google.com/site/geekattempts/ 96 | * 97 | * If any of that ever changes, I will be sure to note it here, 98 | * and add a link at the pages above. 99 | * 100 | * This license added to the original file located at: 101 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test/old/hfmTest.c 102 | * 103 | * (Wow, that's a lot longer than I'd hoped). 104 | * 105 | * Enjoy! 106 | */ 107 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/old/hfmTest2.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 3, 5); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | for(i=0; i<=79; i++) 26 | { 27 | int output = hfm_nextOutput(&hfmThing); 28 | 29 | //if(output) 30 | // printf("#\n"); 31 | //else 32 | // printf("\n"); 33 | 34 | //hfm_setPower&hfmThing, i); 35 | printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 36 | } 37 | 38 | printf("\n"); 39 | } 40 | /* mehPL: 41 | * I would love to believe in a world where licensing shouldn't be 42 | * necessary; where people would respect others' work and wishes, 43 | * and give credit where it's due. 44 | * A world where those who find people's work useful would at least 45 | * send positive vibes--if not an email. 46 | * A world where we wouldn't have to think about the potential 47 | * legal-loopholes that others may take advantage of. 48 | * 49 | * Until that world exists: 50 | * 51 | * This software and associated hardware design is free to use, 52 | * modify, and even redistribute, etc. with only a few exceptions 53 | * I've thought-up as-yet (this list may be appended-to, hopefully it 54 | * doesn't have to be): 55 | * 56 | * 1) Please do not change/remove this licensing info. 57 | * 2) Please do not change/remove others' credit/licensing/copyright 58 | * info, where noted. 59 | * 3) If you find yourself profiting from my work, please send me a 60 | * beer, a trinket, or cash is always handy as well. 61 | * (Please be considerate. E.G. if you've reposted my work on a 62 | * revenue-making (ad-based) website, please think of the 63 | * years and years of hard work that went into this!) 64 | * 4) If you *intend* to profit from my work, you must get my 65 | * permission, first. 66 | * 5) No permission is given for my work to be used in Military, NSA, 67 | * or other creepy-ass purposes. No exceptions. And if there's 68 | * any question in your mind as to whether your project qualifies 69 | * under this category, you must get my explicit permission. 70 | * 71 | * The open-sourced project this originated from is ~98% the work of 72 | * the original author, except where otherwise noted. 73 | * That includes the "commonCode" and makefiles. 74 | * Thanks, of course, should be given to those who worked on the tools 75 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 76 | * I'm certain many others. 77 | * And, as well, to the countless coders who've taken time to post 78 | * solutions to issues I couldn't solve, all over the internets. 79 | * 80 | * 81 | * I'd love to hear of how this is being used, suggestions for 82 | * improvements, etc! 83 | * 84 | * The creator of the original code and original hardware can be 85 | * contacted at: 86 | * 87 | * EricWazHung At Gmail Dotcom 88 | * 89 | * This code's origin (and latest versions) can be found at: 90 | * 91 | * https://code.google.com/u/ericwazhung/ 92 | * 93 | * The site associated with the original open-sourced project is at: 94 | * 95 | * https://sites.google.com/site/geekattempts/ 96 | * 97 | * If any of that ever changes, I will be sure to note it here, 98 | * and add a link at the pages above. 99 | * 100 | * This license added to the original file located at: 101 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test/old/hfmTest2.c 102 | * 103 | * (Wow, that's a lot longer than I'd hoped). 104 | * 105 | * Enjoy! 106 | */ 107 | -------------------------------------------------------------------------------- /hsyncTimerStuff.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | //hsyncTimer is used for timing each LCD row. 20 | // Please see hsyncTimerStuff.h for implementation notes. 21 | 22 | #include "hsyncTimerStuff.h" 23 | 24 | //Testing with values returned by hsyncTimerCalculator 25 | //#define HSYNC_TIMER_OCRVAL 65 26 | 27 | void init_hsyncTimer(void) 28 | { 29 | HSYNC_TIMER_OCR = HSYNC_TIMER_OCRVAL; 30 | //T_Hlow_CYC + T_HD_CYC + T_DE_CYC + T_DH_CYC; 31 | timer_setWGM(HSYNC_TIMER_NUM, WGM_CLR_ON_COMPARE); 32 | timer_selectDivisor(HSYNC_TIMER_NUM, HSYNC_TIMER_CLKDIV); //CLKDIV1); 33 | timer_compareMatchIntEnable(HSYNC_TIMER_NUM, OUT_CHANNELA); 34 | } 35 | 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/hsyncTimerStuff.c 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /_unusedIdeas/scopeHsync.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | // This bit was in SIGNAL(TIMER0...) 20 | // right at the beginning... 21 | 22 | #if (defined(SLOW_EVERYTHING_TEST) && SLOW_EVERYTHING_TEST) 23 | while(TCNT0L != 7){}; 24 | //This won't work... who knows how many cycles interrupt-entry will be 25 | //Above should fix that... 26 | //I believe this was only so I'd have something for the 'scope to 27 | // trigger on... such that the pixel-clock would align with the 28 | // register-assignments... Not sure it ever worked. 29 | #error "These shouldn't be used anymore, since PB2 is GREEN" 30 | setpinPORT(PB2, PORTB); 31 | clrpinPORT(PB2, PORTB); 32 | #endif 33 | 34 | /* mehPL: 35 | * I would love to believe in a world where licensing shouldn't be 36 | * necessary; where people would respect others' work and wishes, 37 | * and give credit where it's due. 38 | * A world where those who find people's work useful would at least 39 | * send positive vibes--if not an email. 40 | * A world where we wouldn't have to think about the potential 41 | * legal-loopholes that others may take advantage of. 42 | * 43 | * Until that world exists: 44 | * 45 | * This software and associated hardware design is free to use, 46 | * modify, and even redistribute, etc. with only a few exceptions 47 | * I've thought-up as-yet (this list may be appended-to, hopefully it 48 | * doesn't have to be): 49 | * 50 | * 1) Please do not change/remove this licensing info. 51 | * 2) Please do not change/remove others' credit/licensing/copyright 52 | * info, where noted. 53 | * 3) If you find yourself profiting from my work, please send me a 54 | * beer, a trinket, or cash is always handy as well. 55 | * (Please be considerate. E.G. if you've reposted my work on a 56 | * revenue-making (ad-based) website, please think of the 57 | * years and years of hard work that went into this!) 58 | * 4) If you *intend* to profit from my work, you must get my 59 | * permission, first. 60 | * 5) No permission is given for my work to be used in Military, NSA, 61 | * or other creepy-ass purposes. No exceptions. And if there's 62 | * any question in your mind as to whether your project qualifies 63 | * under this category, you must get my explicit permission. 64 | * 65 | * The open-sourced project this originated from is ~98% the work of 66 | * the original author, except where otherwise noted. 67 | * That includes the "commonCode" and makefiles. 68 | * Thanks, of course, should be given to those who worked on the tools 69 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 70 | * I'm certain many others. 71 | * And, as well, to the countless coders who've taken time to post 72 | * solutions to issues I couldn't solve, all over the internets. 73 | * 74 | * 75 | * I'd love to hear of how this is being used, suggestions for 76 | * improvements, etc! 77 | * 78 | * The creator of the original code and original hardware can be 79 | * contacted at: 80 | * 81 | * EricWazHung At Gmail Dotcom 82 | * 83 | * This code's origin (and latest versions) can be found at: 84 | * 85 | * https://code.google.com/u/ericwazhung/ 86 | * 87 | * The site associated with the original open-sourced project is at: 88 | * 89 | * https://sites.google.com/site/geekattempts/ 90 | * 91 | * If any of that ever changes, I will be sure to note it here, 92 | * and add a link at the pages above. 93 | * 94 | * This license added to the original file located at: 95 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_unusedIdeas/scopeHsync.c 96 | * 97 | * (Wow, that's a lot longer than I'd hoped). 98 | * 99 | * Enjoy! 100 | */ 101 | -------------------------------------------------------------------------------- /icons/SolidBump3.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | #ifndef __SOLIDBUMP3_H__ 20 | #define __SOLIDBUMP3_H__ 21 | 22 | #include "iconPacking.h" 23 | #include "defaultMotion.c" 24 | #include "Solid3.h" 25 | #include "SolidBump.h" 26 | 27 | #define SOLIDBUMP3_SPRITES 1 28 | #define SOLIDBUMP3_MOTIONS SOLIDBUMP_MOTIONS 29 | 30 | 31 | const __flash sprite_t spriteSOLIDBUMP3 = 32 | { 33 | pgm_imageSOLID3, 34 | pgm_maskSOLID3, 35 | pgm_paletteSOLID3, 36 | NUMPALETTES_SOLID3, 37 | SOLIDBUMP3_MOTIONS, 38 | NadaFlip, 39 | SolidBumpMotion, 40 | DefaultLayer, //Now handles up to 64 motions... 41 | NadaMotion, 42 | NULL, 43 | SOLIDBUMP3_SPRITES 44 | }; 45 | 46 | #endif 47 | 48 | /* mehPL: 49 | * I would love to believe in a world where licensing shouldn't be 50 | * necessary; where people would respect others' work and wishes, 51 | * and give credit where it's due. 52 | * A world where those who find people's work useful would at least 53 | * send positive vibes--if not an email. 54 | * A world where we wouldn't have to think about the potential 55 | * legal-loopholes that others may take advantage of. 56 | * 57 | * Until that world exists: 58 | * 59 | * This software and associated hardware design is free to use, 60 | * modify, and even redistribute, etc. with only a few exceptions 61 | * I've thought-up as-yet (this list may be appended-to, hopefully it 62 | * doesn't have to be): 63 | * 64 | * 1) Please do not change/remove this licensing info. 65 | * 2) Please do not change/remove others' credit/licensing/copyright 66 | * info, where noted. 67 | * 3) If you find yourself profiting from my work, please send me a 68 | * beer, a trinket, or cash is always handy as well. 69 | * (Please be considerate. E.G. if you've reposted my work on a 70 | * revenue-making (ad-based) website, please think of the 71 | * years and years of hard work that went into this!) 72 | * 4) If you *intend* to profit from my work, you must get my 73 | * permission, first. 74 | * 5) No permission is given for my work to be used in Military, NSA, 75 | * or other creepy-ass purposes. No exceptions. And if there's 76 | * any question in your mind as to whether your project qualifies 77 | * under this category, you must get my explicit permission. 78 | * 79 | * The open-sourced project this originated from is ~98% the work of 80 | * the original author, except where otherwise noted. 81 | * That includes the "commonCode" and makefiles. 82 | * Thanks, of course, should be given to those who worked on the tools 83 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 84 | * I'm certain many others. 85 | * And, as well, to the countless coders who've taken time to post 86 | * solutions to issues I couldn't solve, all over the internets. 87 | * 88 | * 89 | * I'd love to hear of how this is being used, suggestions for 90 | * improvements, etc! 91 | * 92 | * The creator of the original code and original hardware can be 93 | * contacted at: 94 | * 95 | * EricWazHung At Gmail Dotcom 96 | * 97 | * This code's origin (and latest versions) can be found at: 98 | * 99 | * https://code.google.com/u/ericwazhung/ 100 | * 101 | * The site associated with the original open-sourced project is at: 102 | * 103 | * https://sites.google.com/site/geekattempts/ 104 | * 105 | * If any of that ever changes, I will be sure to note it here, 106 | * and add a link at the pages above. 107 | * 108 | * This license added to the original file located at: 109 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/icons/1up.h 110 | * 111 | * (Wow, that's a lot longer than I'd hoped). 112 | * 113 | * Enjoy! 114 | */ 115 | -------------------------------------------------------------------------------- /icons/gPixelVal.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | #ifndef __GPIXELVAL_H__ 20 | #define __GPIXELVAL_H__ 21 | 22 | 23 | #define ICON_HEIGHT 16 24 | #define ICON_WIDTH 16 25 | 26 | 27 | //The gimp pixels are 0-48 in value, we use 2 bits per color, which is 64 28 | // despite the fact that blue=0 is the same as blue=1 29 | // (or is it that blue=2 is the same as blue=3? I think so.) 30 | // Might be able to get away with just + 0x10 in all cases? 31 | #define gimpPixelValToLColor(gPixelVal) \ 32 | ((((gPixelVal)&0x30)<0x20) ? (gPixelVal) : ((gPixelVal)+0x10)) 33 | 34 | //a/o v66: I have no idea what this note is for... 35 | /* GIMP header image file format (INDEXED): /Users/meh/Desktop/Mario/1up.h */ 36 | #endif 37 | 38 | /* mehPL: 39 | * I would love to believe in a world where licensing shouldn't be 40 | * necessary; where people would respect others' work and wishes, 41 | * and give credit where it's due. 42 | * A world where those who find people's work useful would at least 43 | * send positive vibes--if not an email. 44 | * A world where we wouldn't have to think about the potential 45 | * legal-loopholes that others may take advantage of. 46 | * 47 | * Until that world exists: 48 | * 49 | * This software and associated hardware design is free to use, 50 | * modify, and even redistribute, etc. with only a few exceptions 51 | * I've thought-up as-yet (this list may be appended-to, hopefully it 52 | * doesn't have to be): 53 | * 54 | * 1) Please do not change/remove this licensing info. 55 | * 2) Please do not change/remove others' credit/licensing/copyright 56 | * info, where noted. 57 | * 3) If you find yourself profiting from my work, please send me a 58 | * beer, a trinket, or cash is always handy as well. 59 | * (Please be considerate. E.G. if you've reposted my work on a 60 | * revenue-making (ad-based) website, please think of the 61 | * years and years of hard work that went into this!) 62 | * 4) If you *intend* to profit from my work, you must get my 63 | * permission, first. 64 | * 5) No permission is given for my work to be used in Military, NSA, 65 | * or other creepy-ass purposes. No exceptions. And if there's 66 | * any question in your mind as to whether your project qualifies 67 | * under this category, you must get my explicit permission. 68 | * 69 | * The open-sourced project this originated from is ~98% the work of 70 | * the original author, except where otherwise noted. 71 | * That includes the "commonCode" and makefiles. 72 | * Thanks, of course, should be given to those who worked on the tools 73 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 74 | * I'm certain many others. 75 | * And, as well, to the countless coders who've taken time to post 76 | * solutions to issues I couldn't solve, all over the internets. 77 | * 78 | * 79 | * I'd love to hear of how this is being used, suggestions for 80 | * improvements, etc! 81 | * 82 | * The creator of the original code and original hardware can be 83 | * contacted at: 84 | * 85 | * EricWazHung At Gmail Dotcom 86 | * 87 | * This code's origin (and latest versions) can be found at: 88 | * 89 | * https://code.google.com/u/ericwazhung/ 90 | * 91 | * The site associated with the original open-sourced project is at: 92 | * 93 | * https://sites.google.com/site/geekattempts/ 94 | * 95 | * If any of that ever changes, I will be sure to note it here, 96 | * and add a link at the pages above. 97 | * 98 | * This license added to the original file located at: 99 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/icons/gPixelVal.h 100 | * 101 | * (Wow, that's a lot longer than I'd hoped). 102 | * 103 | * Enjoy! 104 | */ 105 | -------------------------------------------------------------------------------- /main.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | // Please see mainConfig.h!!! 20 | 21 | 22 | #ifndef __MAIN_H__ 23 | #define __MAIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | /* Interrupt Handling */ 30 | #include 31 | 32 | #include _BITHANDLING_HEADER_ 33 | //#include _SINETABLE_HEADER_ 34 | //#include _SINETRAVEL_HEADER_ 35 | //#include _GOTORAMPED_HEADER_ 36 | //#include _UART_OUT_HEADER_ 37 | //#include _UART_IN_HEADER_ 38 | #include _HEARTBEAT_HEADER_ 39 | //#include _HPGLTEXT_HEADER_ 40 | 41 | //These are also included in limits.c... kinda hokey 42 | //#ifdef _KC644_ 43 | // #include "xyKC644.h" 44 | //#else 45 | // #include "xyKrautBoard.h" 46 | //#endif 47 | 48 | 49 | #endif 50 | 51 | /* mehPL: 52 | * I would love to believe in a world where licensing shouldn't be 53 | * necessary; where people would respect others' work and wishes, 54 | * and give credit where it's due. 55 | * A world where those who find people's work useful would at least 56 | * send positive vibes--if not an email. 57 | * A world where we wouldn't have to think about the potential 58 | * legal-loopholes that others may take advantage of. 59 | * 60 | * Until that world exists: 61 | * 62 | * This software and associated hardware design is free to use, 63 | * modify, and even redistribute, etc. with only a few exceptions 64 | * I've thought-up as-yet (this list may be appended-to, hopefully it 65 | * doesn't have to be): 66 | * 67 | * 1) Please do not change/remove this licensing info. 68 | * 2) Please do not change/remove others' credit/licensing/copyright 69 | * info, where noted. 70 | * 3) If you find yourself profiting from my work, please send me a 71 | * beer, a trinket, or cash is always handy as well. 72 | * (Please be considerate. E.G. if you've reposted my work on a 73 | * revenue-making (ad-based) website, please think of the 74 | * years and years of hard work that went into this!) 75 | * 4) If you *intend* to profit from my work, you must get my 76 | * permission, first. 77 | * 5) No permission is given for my work to be used in Military, NSA, 78 | * or other creepy-ass purposes. No exceptions. And if there's 79 | * any question in your mind as to whether your project qualifies 80 | * under this category, you must get my explicit permission. 81 | * 82 | * The open-sourced project this originated from is ~98% the work of 83 | * the original author, except where otherwise noted. 84 | * That includes the "commonCode" and makefiles. 85 | * Thanks, of course, should be given to those who worked on the tools 86 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 87 | * I'm certain many others. 88 | * And, as well, to the countless coders who've taken time to post 89 | * solutions to issues I couldn't solve, all over the internets. 90 | * 91 | * 92 | * I'd love to hear of how this is being used, suggestions for 93 | * improvements, etc! 94 | * 95 | * The creator of the original code and original hardware can be 96 | * contacted at: 97 | * 98 | * EricWazHung At Gmail Dotcom 99 | * 100 | * This code's origin (and latest versions) can be found at: 101 | * 102 | * https://code.google.com/u/ericwazhung/ 103 | * 104 | * The site associated with the original open-sourced project is at: 105 | * 106 | * https://sites.google.com/site/geekattempts/ 107 | * 108 | * If any of that ever changes, I will be sure to note it here, 109 | * and add a link at the pages above. 110 | * 111 | * This license added to the original file located at: 112 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/main.h 113 | * 114 | * (Wow, that's a lot longer than I'd hoped). 115 | * 116 | * Enjoy! 117 | */ 118 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/old/hfmTest3.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 3, 5); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | int j; 26 | for(j=0; j<=5; j++) 27 | { 28 | printf("%d/%d\n", j, 5); 29 | 30 | hfm_setup(&hfmThing, j, 5); 31 | 32 | for(i=0; i<=79; i++) 33 | { 34 | int output = hfm_nextOutput(&hfmThing); 35 | 36 | //if(output) 37 | // printf("#\n"); 38 | //else 39 | // printf("\n"); 40 | 41 | //hfm_setPower&hfmThing, i); 42 | printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 43 | } 44 | } 45 | 46 | printf("\n"); 47 | } 48 | /* mehPL: 49 | * I would love to believe in a world where licensing shouldn't be 50 | * necessary; where people would respect others' work and wishes, 51 | * and give credit where it's due. 52 | * A world where those who find people's work useful would at least 53 | * send positive vibes--if not an email. 54 | * A world where we wouldn't have to think about the potential 55 | * legal-loopholes that others may take advantage of. 56 | * 57 | * Until that world exists: 58 | * 59 | * This software and associated hardware design is free to use, 60 | * modify, and even redistribute, etc. with only a few exceptions 61 | * I've thought-up as-yet (this list may be appended-to, hopefully it 62 | * doesn't have to be): 63 | * 64 | * 1) Please do not change/remove this licensing info. 65 | * 2) Please do not change/remove others' credit/licensing/copyright 66 | * info, where noted. 67 | * 3) If you find yourself profiting from my work, please send me a 68 | * beer, a trinket, or cash is always handy as well. 69 | * (Please be considerate. E.G. if you've reposted my work on a 70 | * revenue-making (ad-based) website, please think of the 71 | * years and years of hard work that went into this!) 72 | * 4) If you *intend* to profit from my work, you must get my 73 | * permission, first. 74 | * 5) No permission is given for my work to be used in Military, NSA, 75 | * or other creepy-ass purposes. No exceptions. And if there's 76 | * any question in your mind as to whether your project qualifies 77 | * under this category, you must get my explicit permission. 78 | * 79 | * The open-sourced project this originated from is ~98% the work of 80 | * the original author, except where otherwise noted. 81 | * That includes the "commonCode" and makefiles. 82 | * Thanks, of course, should be given to those who worked on the tools 83 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 84 | * I'm certain many others. 85 | * And, as well, to the countless coders who've taken time to post 86 | * solutions to issues I couldn't solve, all over the internets. 87 | * 88 | * 89 | * I'd love to hear of how this is being used, suggestions for 90 | * improvements, etc! 91 | * 92 | * The creator of the original code and original hardware can be 93 | * contacted at: 94 | * 95 | * EricWazHung At Gmail Dotcom 96 | * 97 | * This code's origin (and latest versions) can be found at: 98 | * 99 | * https://code.google.com/u/ericwazhung/ 100 | * 101 | * The site associated with the original open-sourced project is at: 102 | * 103 | * https://sites.google.com/site/geekattempts/ 104 | * 105 | * If any of that ever changes, I will be sure to note it here, 106 | * and add a link at the pages above. 107 | * 108 | * This license added to the original file located at: 109 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test/old/hfmTest3.c 110 | * 111 | * (Wow, that's a lot longer than I'd hoped). 112 | * 113 | * Enjoy! 114 | */ 115 | -------------------------------------------------------------------------------- /_unusedIdeas/frameSync.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | //SHOULD PROBABLY BE REVISITED 20 | // It probably doesn't work with all cases... 21 | // Definitely with drawPix/Images... 22 | //This causes main to update the image *after* FRAME_UPDATE_DELAY 23 | // a/o v59: I don't think this is used anymore... 24 | // a/o v60: Removing it... it can be reimplemented again later if necessary 25 | //#define FRAME_SYNC TRUE 26 | 27 | 28 | //This was last-used in close-conjunction with FRAME_COUNT_TO_DELAY 29 | 30 | // Implementation Details: 31 | // Heh, I deleted it! 32 | 33 | // From Main loop: 34 | // 35 | // #if (defined(FRAME_SYNC) && FRAME_SYNC) 36 | // if(frameCount==0 && !getbit(OCIE0A, T0_TIMSK)) 37 | // { 38 | // do-stuff (e.g. update the frame-buffer) 39 | // } 40 | /* mehPL: 41 | * I would love to believe in a world where licensing shouldn't be 42 | * necessary; where people would respect others' work and wishes, 43 | * and give credit where it's due. 44 | * A world where those who find people's work useful would at least 45 | * send positive vibes--if not an email. 46 | * A world where we wouldn't have to think about the potential 47 | * legal-loopholes that others may take advantage of. 48 | * 49 | * Until that world exists: 50 | * 51 | * This software and associated hardware design is free to use, 52 | * modify, and even redistribute, etc. with only a few exceptions 53 | * I've thought-up as-yet (this list may be appended-to, hopefully it 54 | * doesn't have to be): 55 | * 56 | * 1) Please do not change/remove this licensing info. 57 | * 2) Please do not change/remove others' credit/licensing/copyright 58 | * info, where noted. 59 | * 3) If you find yourself profiting from my work, please send me a 60 | * beer, a trinket, or cash is always handy as well. 61 | * (Please be considerate. E.G. if you've reposted my work on a 62 | * revenue-making (ad-based) website, please think of the 63 | * years and years of hard work that went into this!) 64 | * 4) If you *intend* to profit from my work, you must get my 65 | * permission, first. 66 | * 5) No permission is given for my work to be used in Military, NSA, 67 | * or other creepy-ass purposes. No exceptions. And if there's 68 | * any question in your mind as to whether your project qualifies 69 | * under this category, you must get my explicit permission. 70 | * 71 | * The open-sourced project this originated from is ~98% the work of 72 | * the original author, except where otherwise noted. 73 | * That includes the "commonCode" and makefiles. 74 | * Thanks, of course, should be given to those who worked on the tools 75 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 76 | * I'm certain many others. 77 | * And, as well, to the countless coders who've taken time to post 78 | * solutions to issues I couldn't solve, all over the internets. 79 | * 80 | * 81 | * I'd love to hear of how this is being used, suggestions for 82 | * improvements, etc! 83 | * 84 | * The creator of the original code and original hardware can be 85 | * contacted at: 86 | * 87 | * EricWazHung At Gmail Dotcom 88 | * 89 | * This code's origin (and latest versions) can be found at: 90 | * 91 | * https://code.google.com/u/ericwazhung/ 92 | * 93 | * The site associated with the original open-sourced project is at: 94 | * 95 | * https://sites.google.com/site/geekattempts/ 96 | * 97 | * If any of that ever changes, I will be sure to note it here, 98 | * and add a link at the pages above. 99 | * 100 | * This license added to the original file located at: 101 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_unusedIdeas/frameSync.c 102 | * 103 | * (Wow, that's a lot longer than I'd hoped). 104 | * 105 | * Enjoy! 106 | */ 107 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/test/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (!defined(PROJINFO_SHORT) || !PROJINFO_SHORT) 16 | uint8_t __attribute__ ((progmem)) \ 17 | header0[] = " /Users/meh/_commonCode/heartbeat/1.30/test "; 18 | uint8_t __attribute__ ((progmem)) \ 19 | header1[] = " Sun Feb 9 21:48:36 PST 2014 "; 20 | uint8_t __attribute__ ((progmem)) \ 21 | headerOpt[] = " "; 22 | #else //projInfo Shortened 23 | uint8_t __attribute__ ((progmem)) \ 24 | header[] = "heartbeatTesttest 2014-02-09 21:48:36"; 25 | #endif 26 | 27 | //For internal use... 28 | //Currently only usable in main.c 29 | #define PROJ_VER test 30 | #define COMPILE_YEAR 2014 31 | 32 | #endif 33 | 34 | /* mehPL: 35 | * I would love to believe in a world where licensing shouldn't be 36 | * necessary; where people would respect others' work and wishes, 37 | * and give credit where it's due. 38 | * A world where those who find people's work useful would at least 39 | * send positive vibes--if not an email. 40 | * A world where we wouldn't have to think about the potential 41 | * legal-loopholes that others may take advantage of. 42 | * 43 | * Until that world exists: 44 | * 45 | * This software and associated hardware design is free to use, 46 | * modify, and even redistribute, etc. with only a few exceptions 47 | * I've thought-up as-yet (this list may be appended-to, hopefully it 48 | * doesn't have to be): 49 | * 50 | * 1) Please do not change/remove this licensing info. 51 | * 2) Please do not change/remove others' credit/licensing/copyright 52 | * info, where noted. 53 | * 3) If you find yourself profiting from my work, please send me a 54 | * beer, a trinket, or cash is always handy as well. 55 | * (Please be considerate. E.G. if you've reposted my work on a 56 | * revenue-making (ad-based) website, please think of the 57 | * years and years of hard work that went into this!) 58 | * 4) If you *intend* to profit from my work, you must get my 59 | * permission, first. 60 | * 5) No permission is given for my work to be used in Military, NSA, 61 | * or other creepy-ass purposes. No exceptions. And if there's 62 | * any question in your mind as to whether your project qualifies 63 | * under this category, you must get my explicit permission. 64 | * 65 | * The open-sourced project this originated from is ~98% the work of 66 | * the original author, except where otherwise noted. 67 | * That includes the "commonCode" and makefiles. 68 | * Thanks, of course, should be given to those who worked on the tools 69 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 70 | * I'm certain many others. 71 | * And, as well, to the countless coders who've taken time to post 72 | * solutions to issues I couldn't solve, all over the internets. 73 | * 74 | * 75 | * I'd love to hear of how this is being used, suggestions for 76 | * improvements, etc! 77 | * 78 | * The creator of the original code and original hardware can be 79 | * contacted at: 80 | * 81 | * EricWazHung At Gmail Dotcom 82 | * 83 | * This code's origin (and latest versions) can be found at: 84 | * 85 | * https://code.google.com/u/ericwazhung/ 86 | * 87 | * The site associated with the original open-sourced project is at: 88 | * 89 | * https://sites.google.com/site/geekattempts/ 90 | * 91 | * If any of that ever changes, I will be sure to note it here, 92 | * and add a link at the pages above. 93 | * 94 | * This license added to the original file located at: 95 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/test/projInfo.h 96 | * 97 | * (Wow, that's a lot longer than I'd hoped). 98 | * 99 | * Enjoy! 100 | */ 101 | -------------------------------------------------------------------------------- /_tools/halfColors216.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function purgeColors { 4 | local red="$1" 5 | local green="$2" 6 | local blue="$3" 7 | local name="$4" 8 | local remainingLines="$5" 9 | local red2="" 10 | local green2="" 11 | local blue2="" 12 | local extracted="" 13 | local otherColor="" 14 | local line="" 15 | 16 | IFS=" 17 | " 18 | 19 | # Print the original color... 20 | #redName="$(( red * 3 / 255 ))" 21 | #greenName="$(( green * 3 / 255 ))" 22 | #blueName="$(( blue * 3 / 255 ))" 23 | 24 | for line in $remainingLines 25 | do 26 | 27 | # oldifs="$IFS" 28 | unset IFS 29 | #extracted="`extractColors "$otherColor"`" 30 | read red2 green2 blue2 name2 <<< "$line" 31 | #"$extracted" 32 | IFS=" 33 | " 34 | 35 | #echo "comparing to: '$red2' '$green2' '$blue2' '$name2'" 36 | 37 | if [ "$red2" == "$red" ] 38 | then 39 | if [ "$green2" == "$green" ] 40 | then 41 | if [ "$blue2" == "$blue" ] 42 | then 43 | echo "match found" >&2 44 | echo " '$line'" >&2 45 | printf " %3d %3d %3d %s\n" $red $green $blue "$name" >&2 46 | return 1 47 | fi 48 | fi 49 | fi 50 | done 51 | 52 | return 0 53 | } 54 | 55 | 56 | function extractColors { 57 | local colorLine="$1" 58 | local red="" 59 | local green="" 60 | local blue="" 61 | 62 | 63 | red="${colorLine%%+([[:blank:]])+([[:digit:]])+([[:blank:]])+([[:digit:]])}" 64 | 65 | green="${colorLine%%+([[:blank:]])+([[:digit:]])}" 66 | green="${green##*([[:blank:]])+([[:digit:]])+([[:blank:]])}" 67 | 68 | blue="${colorLine##*([[:blank:]])+([[:digit:]])+([[:blank:]])+([[:digit:]])+([[:blank:]])}" 69 | 70 | 71 | # echo "extractColors: '$red', '$green', '$blue'" >&2 72 | echo "$red $green $blue" 73 | } 74 | 75 | 76 | function parseColors { 77 | local fileCat="$3" 78 | local startLine="$2" 79 | local doRecurse="$1" 80 | local indent=0 81 | local startLineFound=0 82 | local red=0 83 | local green=0 84 | local blue=0 85 | 86 | local line="" 87 | local colorLine="" 88 | 89 | local others="" 90 | 91 | if [ "$doRecurse" == "0" ] 92 | then 93 | #echo "looking for '$startLine'" 94 | indent=3 95 | fi 96 | 97 | IFS=" 98 | " 99 | 100 | rValid="0 101 | 0+0 102 | 0+3 103 | 3+0 104 | 1 105 | 1+1 106 | 1+3 107 | 3+1 108 | 2+3 109 | 3+2 110 | 3 111 | 3+3" 112 | 113 | gValid="0 114 | 0+0 115 | 0+2 116 | 2+0 117 | 1 118 | 1+1 119 | 1+2 120 | 2+1 121 | 2 122 | 2+2 123 | 3 124 | 3+3" 125 | 126 | bValid="0 127 | 0+0 128 | 0+2 129 | 2+0 130 | 0+3 131 | 3+0 132 | 2 133 | 2+2 134 | 2+3 135 | 3+2 136 | 2 137 | 3+3" 138 | 139 | for line in $fileCat 140 | do 141 | 142 | shopt -s extglob 143 | # This should speed things up a bit... 144 | # And could probably remove the necessity for recursion... 145 | fileCat="${fileCat#*" 146 | "}" 147 | 148 | colorLine="${line%+([[:blank:]])r*g*b*}" 149 | 150 | # Repeat the GIMP header... 151 | if [ "$colorLine" == "$line" ] 152 | then 153 | echo "$line" 154 | continue 155 | fi 156 | 157 | #echo "Line: '$line'" 158 | 159 | #shopt -u extglob 160 | unset IFS 161 | read red green blue name <<< "$line" 162 | IFS=" 163 | " 164 | 165 | read -d g rTot <<< "$name" 166 | read -d b gTot <<< "$name" 167 | 168 | rTot="${rTot#r}" 169 | bTot="${name#r*b}" 170 | gTot="${gTot#r*g}" 171 | 172 | #echo "r:'$rTot' g:'$gTot' b:'$bTot'" 173 | 174 | 175 | rOK=0 176 | for rTest in $rValid 177 | do 178 | if [ "$rTest" == "$rTot" ] 179 | then 180 | rOK=1 181 | break 182 | fi 183 | done 184 | 185 | gOK=0 186 | for gTest in $gValid 187 | do 188 | if [ "$gTest" == "$gTot" ] 189 | then 190 | gOK=1 191 | break 192 | fi 193 | done 194 | 195 | bOK=0 196 | for bTest in $gValid 197 | do 198 | if [ "$bTest" == "$bTot" ] 199 | then 200 | bOK=1 201 | break 202 | fi 203 | done 204 | 205 | 206 | if [ "$(( rOK + gOK + bOK ))" == "3" ] 207 | then 208 | echo "$line" 209 | else 210 | echo "'$line' invalid" >&2 211 | fi 212 | 213 | done 214 | 215 | return 0 216 | 217 | } 218 | 219 | 220 | fileCat=`cat LCDdirectLVDS_+HalfColors.gpl` 221 | #halfColorsPurged.gpl` 222 | 223 | #in case there's no newline at the end of the file... 224 | fileCat="$fileCat 225 | " 226 | 227 | #unsorted=`parseColors 1 "" "$fileCat"` 228 | parseColors 1 "" "$fileCat" 229 | 230 | 231 | #Prune "$unsorted" 232 | -------------------------------------------------------------------------------- /delay_cyc.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | //THIS IS NOT THE SAME as delayCyc.h in _commonCode.../ 19 | 20 | //Please see the description and functionality explanation in delay_cyc.c 21 | 22 | #ifndef __DELAY_CYC_H__ 23 | #define __DELAY_CYC_H__ 24 | 25 | //This should probably be reimplemented using _delay_loop_1/2() from 26 | // util/delay_basic.h 27 | // 1 uses three cycles per count, counts from 1-256, 28 | // 256 counts: _delay_loop_1(0) 29 | // 2 uses four, counts from 1-65536, 65536 is passed as 0 30 | 31 | 32 | //This isn't valid, who knows how many instructions the for loop takes 33 | static __inline__ \ 34 | void delay_cyc(int32_t numCyc) \ 35 | __attribute__((__always_inline__)); 36 | 37 | #ifndef DELAY_CYC_DELAY_LOOP 38 | #define DELAY_CYC_DELAY_LOOP TRUE//FALSE 39 | #endif 40 | 41 | #endif 42 | /* mehPL: 43 | * I would love to believe in a world where licensing shouldn't be 44 | * necessary; where people would respect others' work and wishes, 45 | * and give credit where it's due. 46 | * A world where those who find people's work useful would at least 47 | * send positive vibes--if not an email. 48 | * A world where we wouldn't have to think about the potential 49 | * legal-loopholes that others may take advantage of. 50 | * 51 | * Until that world exists: 52 | * 53 | * This software and associated hardware design is free to use, 54 | * modify, and even redistribute, etc. with only a few exceptions 55 | * I've thought-up as-yet (this list may be appended-to, hopefully it 56 | * doesn't have to be): 57 | * 58 | * 1) Please do not change/remove this licensing info. 59 | * 2) Please do not change/remove others' credit/licensing/copyright 60 | * info, where noted. 61 | * 3) If you find yourself profiting from my work, please send me a 62 | * beer, a trinket, or cash is always handy as well. 63 | * (Please be considerate. E.G. if you've reposted my work on a 64 | * revenue-making (ad-based) website, please think of the 65 | * years and years of hard work that went into this!) 66 | * 4) If you *intend* to profit from my work, you must get my 67 | * permission, first. 68 | * 5) No permission is given for my work to be used in Military, NSA, 69 | * or other creepy-ass purposes. No exceptions. And if there's 70 | * any question in your mind as to whether your project qualifies 71 | * under this category, you must get my explicit permission. 72 | * 73 | * The open-sourced project this originated from is ~98% the work of 74 | * the original author, except where otherwise noted. 75 | * That includes the "commonCode" and makefiles. 76 | * Thanks, of course, should be given to those who worked on the tools 77 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 78 | * I'm certain many others. 79 | * And, as well, to the countless coders who've taken time to post 80 | * solutions to issues I couldn't solve, all over the internets. 81 | * 82 | * 83 | * I'd love to hear of how this is being used, suggestions for 84 | * improvements, etc! 85 | * 86 | * The creator of the original code and original hardware can be 87 | * contacted at: 88 | * 89 | * EricWazHung At Gmail Dotcom 90 | * 91 | * This code's origin (and latest versions) can be found at: 92 | * 93 | * https://code.google.com/u/ericwazhung/ 94 | * 95 | * The site associated with the original open-sourced project is at: 96 | * 97 | * https://sites.google.com/site/geekattempts/ 98 | * 99 | * If any of that ever changes, I will be sure to note it here, 100 | * and add a link at the pages above. 101 | * 102 | * This license added to the original file located at: 103 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/delay_cyc.h 104 | * 105 | * (Wow, that's a lot longer than I'd hoped). 106 | * 107 | * Enjoy! 108 | */ 109 | -------------------------------------------------------------------------------- /icons/Biggie.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | #include "iconPacking.h" 20 | 21 | #include "1up.h" //has SHROOM in it... 22 | 23 | 24 | // Biggie is the same as 1up with a different color-palette 25 | 26 | 27 | 28 | #define NUMPALETTES_BIG 1 29 | 30 | //1up Mapping: 0->37 (sky/mask) 1->7, 2->4 3->47 31 | 32 | //0->37, 1->7, 2->2, 3->47 33 | //gimpPixelValToLColor should probably be taken into account. 34 | const static uint8_t pgm_paletteBIG[4*NUMPALETTES_BIG] PROGMEM = 35 | { 37, 7, 2, 47 }; 36 | 37 | const __flash sprite_t spriteBIG = 38 | { 39 | pgm_imageSHROOM, 40 | pgm_maskSHROOM, 41 | pgm_paletteBIG, 42 | NUMPALETTES_BIG, 43 | DEFAULT_MOTIONS, 44 | NadaFlip, 45 | DefaultMotion, 46 | DefaultLayer, 47 | DefaultCamMotion, 48 | NULL, 49 | 1 50 | }; 51 | 52 | /* mehPL: 53 | * I would love to believe in a world where licensing shouldn't be 54 | * necessary; where people would respect others' work and wishes, 55 | * and give credit where it's due. 56 | * A world where those who find people's work useful would at least 57 | * send positive vibes--if not an email. 58 | * A world where we wouldn't have to think about the potential 59 | * legal-loopholes that others may take advantage of. 60 | * 61 | * Until that world exists: 62 | * 63 | * This software and associated hardware design is free to use, 64 | * modify, and even redistribute, etc. with only a few exceptions 65 | * I've thought-up as-yet (this list may be appended-to, hopefully it 66 | * doesn't have to be): 67 | * 68 | * 1) Please do not change/remove this licensing info. 69 | * 2) Please do not change/remove others' credit/licensing/copyright 70 | * info, where noted. 71 | * 3) If you find yourself profiting from my work, please send me a 72 | * beer, a trinket, or cash is always handy as well. 73 | * (Please be considerate. E.G. if you've reposted my work on a 74 | * revenue-making (ad-based) website, please think of the 75 | * years and years of hard work that went into this!) 76 | * 4) If you *intend* to profit from my work, you must get my 77 | * permission, first. 78 | * 5) No permission is given for my work to be used in Military, NSA, 79 | * or other creepy-ass purposes. No exceptions. And if there's 80 | * any question in your mind as to whether your project qualifies 81 | * under this category, you must get my explicit permission. 82 | * 83 | * The open-sourced project this originated from is ~98% the work of 84 | * the original author, except where otherwise noted. 85 | * That includes the "commonCode" and makefiles. 86 | * Thanks, of course, should be given to those who worked on the tools 87 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 88 | * I'm certain many others. 89 | * And, as well, to the countless coders who've taken time to post 90 | * solutions to issues I couldn't solve, all over the internets. 91 | * 92 | * 93 | * I'd love to hear of how this is being used, suggestions for 94 | * improvements, etc! 95 | * 96 | * The creator of the original code and original hardware can be 97 | * contacted at: 98 | * 99 | * EricWazHung At Gmail Dotcom 100 | * 101 | * This code's origin (and latest versions) can be found at: 102 | * 103 | * https://code.google.com/u/ericwazhung/ 104 | * 105 | * The site associated with the original open-sourced project is at: 106 | * 107 | * https://sites.google.com/site/geekattempts/ 108 | * 109 | * If any of that ever changes, I will be sure to note it here, 110 | * and add a link at the pages above. 111 | * 112 | * This license added to the original file located at: 113 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/icons/Biggie.h 114 | * 115 | * (Wow, that's a lot longer than I'd hoped). 116 | * 117 | * Enjoy! 118 | */ 119 | -------------------------------------------------------------------------------- /_tools/halfColors7.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function mergeColors { 4 | local red="$1" 5 | local green="$2" 6 | local blue="$3" 7 | local others="$4" 8 | local red2="" 9 | local green2="" 10 | local blue2="" 11 | local redH="" 12 | local greenH="" 13 | local blueH="" 14 | local redHname="" 15 | local greenHname="" 16 | local blueHname="" 17 | local extracted="" 18 | local otherColor="" 19 | 20 | IFS=" 21 | " 22 | 23 | # Print the original color... 24 | redName="$(( red * 3 / 255 ))" 25 | greenName="$(( green * 3 / 255 ))" 26 | blueName="$(( blue * 3 / 255 ))" 27 | 28 | printf "%3d %3d %3d r%sg%sb%s\n" $red $green $blue \ 29 | "$redName" "$greenName" "$blueName" 30 | 31 | for otherColor in $others 32 | do 33 | 34 | oldifs="$IFS" 35 | unset IFS 36 | extracted="`extractColors "$otherColor"`" 37 | read red2 green2 blue2 <<< "$extracted" 38 | IFS=" 39 | " 40 | 41 | #echo "mergeColors: '$red', '$green', '$blue'" >&2 42 | 43 | #echo "$red2" >&2 44 | 45 | redH="$(( (red+red2)/2 ))" 46 | greenH="$(( (green+green2)/2 ))" 47 | blueH="$(( (blue+blue2)/2 ))" 48 | 49 | redHname="$(( red * 3 / 255))+$(( red2 * 3 / 255 ))" 50 | greenHname="$(( green * 3 / 255))+$(( green2 * 3 / 255 ))" 51 | blueHname="$(( blue * 3 / 255))+$(( blue2 * 3 / 255 ))" 52 | 53 | printf "%3d %3d %3d r%sg%sb%s\n" $redH $greenH $blueH \ 54 | "$redHname" "$greenHname" "$blueHname" 55 | 56 | 57 | done 58 | 59 | return 0 60 | } 61 | 62 | 63 | function extractColors { 64 | local colorLine="$1" 65 | local red="" 66 | local green="" 67 | local blue="" 68 | 69 | 70 | red="${colorLine%%+([[:blank:]])+([[:digit:]])+([[:blank:]])+([[:digit:]])}" 71 | 72 | green="${colorLine%%+([[:blank:]])+([[:digit:]])}" 73 | green="${green##*([[:blank:]])+([[:digit:]])+([[:blank:]])}" 74 | 75 | blue="${colorLine##*([[:blank:]])+([[:digit:]])+([[:blank:]])+([[:digit:]])+([[:blank:]])}" 76 | 77 | 78 | # echo "extractColors: '$red', '$green', '$blue'" >&2 79 | echo "$red $green $blue" 80 | } 81 | 82 | 83 | function parseColors { 84 | local fileCat="$3" 85 | local startLine="$2" 86 | local doRecurse="$1" 87 | local indent=0 88 | local startLineFound=0 89 | local red=0 90 | local green=0 91 | local blue=0 92 | 93 | local line="" 94 | local colorLine="" 95 | 96 | local others="" 97 | 98 | if [ "$doRecurse" == "0" ] 99 | then 100 | #echo "looking for '$startLine'" 101 | indent=3 102 | fi 103 | 104 | IFS=" 105 | " 106 | 107 | shopt -s extglob 108 | 109 | for line in $fileCat 110 | do 111 | #echo "$line" 112 | 113 | if [ "$doRecurse" == "0" ] 114 | then 115 | if [ "$startLineFound" == "0" ] 116 | then 117 | if [ "$line" == "$startLine" ] 118 | then 119 | #echo "...found" 120 | startLineFound=1 121 | fi 122 | 123 | continue 124 | fi 125 | fi 126 | 127 | 128 | colorLine="${line%+([[:blank:]])r[[:digit:]]g[[:digit:]]b[[:digit:]]}" 129 | 130 | # Repeat the GIMP header... 131 | if [ "$colorLine" == "$line" ] 132 | then 133 | echo "$line" 134 | continue 135 | fi 136 | 137 | colorLine="${colorLine##*([[:blank:]])}" 138 | 139 | 140 | unset IFS 141 | extractedColors="`extractColors "$colorLine"`" 142 | read red green blue <<< "$extractedColors" 143 | IFS=" 144 | " 145 | 146 | # echo "parseColors: '$red', '$green', '$blue'" >&2 147 | 148 | if [ "$doRecurse" == "1" ] 149 | then 150 | # echo "recursing" >&2 151 | others=`parseColors 0 "$line" "$fileCat"` 152 | # echo "others: '$others'" >&2 153 | mergeColors $red $green $blue "$others" 154 | #echo "next...?" 155 | #WTF, once the variables in this function are declared, they're reused 156 | #in all recursions?! 157 | #How is it I never ran into this before...?! 158 | # Maybe I've never used a recursive function, and instead had recursive 159 | # calls to script files...? 160 | # Either way, it looks like "local" in the definitions fixes it. 161 | # doRecurse=1 162 | else 163 | echo "$red $green $blue" 164 | fi 165 | 166 | 167 | done 168 | 169 | return 0 170 | 171 | } 172 | 173 | 174 | #function Prune { 175 | #local lines="%1" 176 | # 177 | #IFS=" 178 | #" 179 | # 180 | #for line in $lines 181 | #do 182 | # 183 | # 184 | #} 185 | 186 | fileCat=`cat LCDdirectLVDS_48c.gpl` 187 | 188 | #unsorted=`parseColors 1 "" "$fileCat"` 189 | parseColors 1 "" "$fileCat" 190 | 191 | 192 | #Prune "$unsorted" 193 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/old/hfmTest4.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 30, 50); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | //int k; 26 | //for(k=1; k>=-2; k-=2) 27 | //{ 28 | int j; 29 | for(j=0; j<=11; j++) 30 | { 31 | int k = (j > 5) ? 11-j : j; 32 | 33 | printf("%d/%d\n", k, 5); 34 | 35 | hfm_setPower(&hfmThing, k*10); 36 | 37 | for(i=0; i<=73; i++) 38 | { 39 | int output = hfm_nextOutput(&hfmThing); 40 | 41 | //if(output) 42 | // printf("#\n"); 43 | //else 44 | // printf("\n"); 45 | 46 | //hfm_setPower&hfmThing, i); 47 | printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 48 | } 49 | printf("\n"); 50 | } 51 | //} 52 | 53 | printf("\n"); 54 | } 55 | /* mehPL: 56 | * I would love to believe in a world where licensing shouldn't be 57 | * necessary; where people would respect others' work and wishes, 58 | * and give credit where it's due. 59 | * A world where those who find people's work useful would at least 60 | * send positive vibes--if not an email. 61 | * A world where we wouldn't have to think about the potential 62 | * legal-loopholes that others may take advantage of. 63 | * 64 | * Until that world exists: 65 | * 66 | * This software and associated hardware design is free to use, 67 | * modify, and even redistribute, etc. with only a few exceptions 68 | * I've thought-up as-yet (this list may be appended-to, hopefully it 69 | * doesn't have to be): 70 | * 71 | * 1) Please do not change/remove this licensing info. 72 | * 2) Please do not change/remove others' credit/licensing/copyright 73 | * info, where noted. 74 | * 3) If you find yourself profiting from my work, please send me a 75 | * beer, a trinket, or cash is always handy as well. 76 | * (Please be considerate. E.G. if you've reposted my work on a 77 | * revenue-making (ad-based) website, please think of the 78 | * years and years of hard work that went into this!) 79 | * 4) If you *intend* to profit from my work, you must get my 80 | * permission, first. 81 | * 5) No permission is given for my work to be used in Military, NSA, 82 | * or other creepy-ass purposes. No exceptions. And if there's 83 | * any question in your mind as to whether your project qualifies 84 | * under this category, you must get my explicit permission. 85 | * 86 | * The open-sourced project this originated from is ~98% the work of 87 | * the original author, except where otherwise noted. 88 | * That includes the "commonCode" and makefiles. 89 | * Thanks, of course, should be given to those who worked on the tools 90 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 91 | * I'm certain many others. 92 | * And, as well, to the countless coders who've taken time to post 93 | * solutions to issues I couldn't solve, all over the internets. 94 | * 95 | * 96 | * I'd love to hear of how this is being used, suggestions for 97 | * improvements, etc! 98 | * 99 | * The creator of the original code and original hardware can be 100 | * contacted at: 101 | * 102 | * EricWazHung At Gmail Dotcom 103 | * 104 | * This code's origin (and latest versions) can be found at: 105 | * 106 | * https://code.google.com/u/ericwazhung/ 107 | * 108 | * The site associated with the original open-sourced project is at: 109 | * 110 | * https://sites.google.com/site/geekattempts/ 111 | * 112 | * If any of that ever changes, I will be sure to note it here, 113 | * and add a link at the pages above. 114 | * 115 | * This license added to the original file located at: 116 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test/old/hfmTest4.c 117 | * 118 | * (Wow, that's a lot longer than I'd hoped). 119 | * 120 | * Enjoy! 121 | */ 122 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/old/hfmTest5.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 30, 50); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | //int k; 26 | //for(k=1; k>=-2; k-=2) 27 | //{ 28 | int j; 29 | for(j=0; j<=11; j++) 30 | { 31 | int k = (j > 5) ? 11-j : j; 32 | 33 | printf("%d/%d:", k, 5); 34 | 35 | hfm_setup(&hfmThing, k, 5); 36 | 37 | for(i=0; i<=73; i++) 38 | { 39 | //int output = hfm_nextOutput(&hfmThing); 40 | 41 | //if(output) 42 | // printf("#\n"); 43 | //else 44 | // printf("\n"); 45 | 46 | //hfm_setPower&hfmThing, i); 47 | printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 48 | } 49 | printf("\n"); 50 | } 51 | //} 52 | 53 | printf("\n"); 54 | } 55 | /* mehPL: 56 | * I would love to believe in a world where licensing shouldn't be 57 | * necessary; where people would respect others' work and wishes, 58 | * and give credit where it's due. 59 | * A world where those who find people's work useful would at least 60 | * send positive vibes--if not an email. 61 | * A world where we wouldn't have to think about the potential 62 | * legal-loopholes that others may take advantage of. 63 | * 64 | * Until that world exists: 65 | * 66 | * This software and associated hardware design is free to use, 67 | * modify, and even redistribute, etc. with only a few exceptions 68 | * I've thought-up as-yet (this list may be appended-to, hopefully it 69 | * doesn't have to be): 70 | * 71 | * 1) Please do not change/remove this licensing info. 72 | * 2) Please do not change/remove others' credit/licensing/copyright 73 | * info, where noted. 74 | * 3) If you find yourself profiting from my work, please send me a 75 | * beer, a trinket, or cash is always handy as well. 76 | * (Please be considerate. E.G. if you've reposted my work on a 77 | * revenue-making (ad-based) website, please think of the 78 | * years and years of hard work that went into this!) 79 | * 4) If you *intend* to profit from my work, you must get my 80 | * permission, first. 81 | * 5) No permission is given for my work to be used in Military, NSA, 82 | * or other creepy-ass purposes. No exceptions. And if there's 83 | * any question in your mind as to whether your project qualifies 84 | * under this category, you must get my explicit permission. 85 | * 86 | * The open-sourced project this originated from is ~98% the work of 87 | * the original author, except where otherwise noted. 88 | * That includes the "commonCode" and makefiles. 89 | * Thanks, of course, should be given to those who worked on the tools 90 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 91 | * I'm certain many others. 92 | * And, as well, to the countless coders who've taken time to post 93 | * solutions to issues I couldn't solve, all over the internets. 94 | * 95 | * 96 | * I'd love to hear of how this is being used, suggestions for 97 | * improvements, etc! 98 | * 99 | * The creator of the original code and original hardware can be 100 | * contacted at: 101 | * 102 | * EricWazHung At Gmail Dotcom 103 | * 104 | * This code's origin (and latest versions) can be found at: 105 | * 106 | * https://code.google.com/u/ericwazhung/ 107 | * 108 | * The site associated with the original open-sourced project is at: 109 | * 110 | * https://sites.google.com/site/geekattempts/ 111 | * 112 | * If any of that ever changes, I will be sure to note it here, 113 | * and add a link at the pages above. 114 | * 115 | * This license added to the original file located at: 116 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test/old/hfmTest5.c 117 | * 118 | * (Wow, that's a lot longer than I'd hoped). 119 | * 120 | * Enjoy! 121 | */ 122 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/hfModulation.mk: -------------------------------------------------------------------------------- 1 | #/* mehPL: 2 | # * This is Open Source, but NOT GPL. I call it mehPL. 3 | # * I'm not too fond of long licenses at the top of the file. 4 | # * Please see the bottom. 5 | # * Enjoy! 6 | # */ 7 | # 8 | # 9 | # hfModulation depends only on bithandling, which isn't a library.. 10 | 11 | # The following variables are expected to be defined in the calling makefile(s) 12 | # HFMODULATION_LIB - Path to hfModulation.mk/c including filename, excluding extension 13 | # TCOMDIR 14 | # 15 | #Optional: 16 | # HFMODULATION_REMOVED = TRUE -- remove HFMODULATION for code-size 17 | 18 | #only include hfModulation once... 19 | ifneq ($(HFMODULATION_INCLUDED),true) 20 | 21 | HFMODULATION_INCLUDED = true 22 | 23 | CFLAGS += -D'_HFMODULATION_INCLUDED_=$(HFMODULATION_INCLUDED)' 24 | CFLAGS += -D'_HFMODULATION_HEADER_="$(HFMODULATION_LIB).h"' 25 | 26 | ifneq ($(HFMODULATION_REMOVED),TRUE) 27 | #Add this library's source code to SRC 28 | SRC += $(HFMODULATION_LIB).c 29 | else 30 | CFLAGS += -D'__HFMODULATION_REMOVED__=TRUE' 31 | endif 32 | 33 | endif 34 | #/* mehPL: 35 | # * I would love to believe in a world where licensing shouldn't be 36 | # * necessary; where people would respect others' work and wishes, 37 | # * and give credit where it's due. 38 | # * A world where those who find people's work useful would at least 39 | # * send positive vibes--if not an email. 40 | # * A world where we wouldn't have to think about the potential 41 | # * legal-loopholes that others may take advantage of. 42 | # * 43 | # * Until that world exists: 44 | # * 45 | # * This software and associated hardware design is free to use, 46 | # * modify, and even redistribute, etc. with only a few exceptions 47 | # * I've thought-up as-yet (this list may be appended-to, hopefully it 48 | # * doesn't have to be): 49 | # * 50 | # * 1) Please do not change/remove this licensing info. 51 | # * 2) Please do not change/remove others' credit/licensing/copyright 52 | # * info, where noted. 53 | # * 3) If you find yourself profiting from my work, please send me a 54 | # * beer, a trinket, or cash is always handy as well. 55 | # * (Please be considerate. E.G. if you've reposted my work on a 56 | # * revenue-making (ad-based) website, please think of the 57 | # * years and years of hard work that went into this!) 58 | # * 4) If you *intend* to profit from my work, you must get my 59 | # * permission, first. 60 | # * 5) No permission is given for my work to be used in Military, NSA, 61 | # * or other creepy-ass purposes. No exceptions. And if there's 62 | # * any question in your mind as to whether your project qualifies 63 | # * under this category, you must get my explicit permission. 64 | # * 65 | # * The open-sourced project this originated from is ~98% the work of 66 | # * the original author, except where otherwise noted. 67 | # * That includes the "commonCode" and makefiles. 68 | # * Thanks, of course, should be given to those who worked on the tools 69 | # * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 70 | # * I'm certain many others. 71 | # * And, as well, to the countless coders who've taken time to post 72 | # * solutions to issues I couldn't solve, all over the internets. 73 | # * 74 | # * 75 | # * I'd love to hear of how this is being used, suggestions for 76 | # * improvements, etc! 77 | # * 78 | # * The creator of the original code and original hardware can be 79 | # * contacted at: 80 | # * 81 | # * EricWazHung At Gmail Dotcom 82 | # * 83 | # * This code's origin (and latest versions) can be found at: 84 | # * 85 | # * https://code.google.com/u/ericwazhung/ 86 | # * 87 | # * The site associated with the original open-sourced project is at: 88 | # * 89 | # * https://sites.google.com/site/geekattempts/ 90 | # * 91 | # * If any of that ever changes, I will be sure to note it here, 92 | # * and add a link at the pages above. 93 | # * 94 | # * This license added to the original file located at: 95 | # * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/hfModulation.mk 96 | # * 97 | # * (Wow, that's a lot longer than I'd hoped). 98 | # * 99 | # * Enjoy! 100 | # */ 101 | -------------------------------------------------------------------------------- /_tools/halfColorsParser.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | file="$1" 4 | 5 | function purgeColors { 6 | local red="$1" 7 | local green="$2" 8 | local blue="$3" 9 | local name="$4" 10 | local remainingLines="$5" 11 | local red2="" 12 | local green2="" 13 | local blue2="" 14 | local extracted="" 15 | local otherColor="" 16 | local line="" 17 | 18 | IFS=" 19 | " 20 | 21 | # Print the original color... 22 | #redName="$(( red * 3 / 255 ))" 23 | #greenName="$(( green * 3 / 255 ))" 24 | #blueName="$(( blue * 3 / 255 ))" 25 | 26 | for line in $remainingLines 27 | do 28 | 29 | # oldifs="$IFS" 30 | unset IFS 31 | #extracted="`extractColors "$otherColor"`" 32 | read red2 green2 blue2 name2 <<< "$line" 33 | #"$extracted" 34 | IFS=" 35 | " 36 | 37 | #echo "comparing to: '$red2' '$green2' '$blue2' '$name2'" 38 | 39 | if [ "$red2" == "$red" ] 40 | then 41 | if [ "$green2" == "$green" ] 42 | then 43 | if [ "$blue2" == "$blue" ] 44 | then 45 | echo "match found" >&2 46 | echo " '$line'" >&2 47 | printf " %3d %3d %3d %s\n" $red $green $blue "$name" >&2 48 | return 1 49 | fi 50 | fi 51 | fi 52 | done 53 | 54 | return 0 55 | } 56 | 57 | 58 | function extractColors { 59 | local colorLine="$1" 60 | local red="" 61 | local green="" 62 | local blue="" 63 | 64 | 65 | red="${colorLine%%+([[:blank:]])+([[:digit:]])+([[:blank:]])+([[:digit:]])}" 66 | 67 | green="${colorLine%%+([[:blank:]])+([[:digit:]])}" 68 | green="${green##*([[:blank:]])+([[:digit:]])+([[:blank:]])}" 69 | 70 | blue="${colorLine##*([[:blank:]])+([[:digit:]])+([[:blank:]])+([[:digit:]])+([[:blank:]])}" 71 | 72 | 73 | # echo "extractColors: '$red', '$green', '$blue'" >&2 74 | echo "$red $green $blue" 75 | } 76 | 77 | 78 | function parseColors { 79 | local fileCat="$3" 80 | local startLine="$2" 81 | local doRecurse="$1" 82 | local indent=0 83 | local startLineFound=0 84 | local red=0 85 | local green=0 86 | local blue=0 87 | 88 | local line="" 89 | local colorLine="" 90 | 91 | local others="" 92 | 93 | if [ "$doRecurse" == "0" ] 94 | then 95 | #echo "looking for '$startLine'" 96 | indent=3 97 | fi 98 | 99 | IFS=" 100 | " 101 | 102 | shopt -s extglob 103 | 104 | for line in $fileCat 105 | do 106 | #echo "$line" 107 | 108 | 109 | # This should no longer be necessary a/o lineRemovalFromFileCat 110 | # if [ "$doRecurse" == "0" ] 111 | # then 112 | # if [ "$startLineFound" == "0" ] 113 | # then 114 | # if [ "$line" == "$startLine" ] 115 | # then 116 | #echo "...found" 117 | # startLineFound=1 118 | # fi 119 | # 120 | # continue 121 | # fi 122 | # fi 123 | 124 | 125 | # This should speed things up a bit... 126 | # And could probably remove the necessity for recursion... 127 | fileCat="${fileCat#*" 128 | "}" 129 | 130 | colorLine="${line%+([[:blank:]])r*g*b*}" 131 | 132 | # Repeat the GIMP header... 133 | if [ "$colorLine" == "$line" ] 134 | then 135 | echo "$line" 136 | continue 137 | fi 138 | 139 | #echo "Line: '$line'" 140 | 141 | unset IFS 142 | read red green blue name <<< "$line" 143 | IFS=" 144 | " 145 | 146 | #echo "parseColors: '$red', '$green', '$blue' '$name'" >&2 147 | 148 | if [ "$doRecurse" == "1" ] 149 | then 150 | # echo "recursing" >&2 151 | # others=`parseColors 0 "$line" "$fileCat"` 152 | # echo "others: '$others'" >&2 153 | purgeColors $red $green $blue "$name" "$fileCat" 154 | 155 | if [ "$?" == "0" ] 156 | then 157 | echo "$line" 158 | echo "Adding line: '$line'" >&2 159 | fi 160 | #echo "next...?" 161 | #WTF, once the variables in this function are declared, they're reused 162 | #in all recursions?! 163 | #How is it I never ran into this before...?! 164 | # Maybe I've never used a recursive function, and instead had recursive 165 | # calls to script files...? 166 | # Either way, it looks like "local" in the definitions fixes it. 167 | # doRecurse=1 168 | else 169 | echo "$line" 170 | #"$red $green $blue" 171 | fi 172 | 173 | 174 | done 175 | 176 | return 0 177 | 178 | } 179 | 180 | 181 | #function Prune { 182 | #local lines="%1" 183 | # 184 | #IFS=" 185 | #" 186 | # 187 | #for line in $lines 188 | #do 189 | # 190 | # 191 | #} 192 | 193 | fileCat=`cat "$file"` 194 | 195 | #in case there's no newline at the end of the file... 196 | fileCat="$fileCat 197 | " 198 | 199 | #unsorted=`parseColors 1 "" "$fileCat"` 200 | parseColors 1 "" "$fileCat" 201 | 202 | 203 | #Prune "$unsorted" 204 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testDMS/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header[] = ""; 18 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 19 | const uint8_t __attribute__ ((progmem)) \ 20 | header[] = "heartbeatTesttestDMS 2014-05-02 20:27:54"; 21 | #else //projInfo Not Shortened nor overridden 22 | const uint8_t __attribute__ ((progmem)) \ 23 | header0[] = " /Users/meh/_commonCode/heartbeat/1.50/testDMS "; 24 | const uint8_t __attribute__ ((progmem)) \ 25 | header1[] = " Fri May 2 20:27:54 PDT 2014 "; 26 | const uint8_t __attribute__ ((progmem)) \ 27 | headerOpt[] = " "; 28 | #endif 29 | 30 | //For internal use... 31 | //Currently only usable in main.c 32 | #define PROJ_VER testDMS 33 | #define COMPILE_YEAR 2014 34 | 35 | #endif 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testDMS/projInfo.h 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testPWM161/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header[] = ""; 18 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 19 | const uint8_t __attribute__ ((progmem)) \ 20 | header[] = "heartbeatTesttestPWM161 2014-04-21 19:50:09"; 21 | #else //projInfo Not Shortened nor overridden 22 | const uint8_t __attribute__ ((progmem)) \ 23 | header0[] = " /Users/meh/_commonCode/heartbeat/1.30/testPWM161 "; 24 | const uint8_t __attribute__ ((progmem)) \ 25 | header1[] = " Mon Apr 21 19:50:09 PDT 2014 "; 26 | const uint8_t __attribute__ ((progmem)) \ 27 | headerOpt[] = " "; 28 | #endif 29 | 30 | //For internal use... 31 | //Currently only usable in main.c 32 | #define PROJ_VER testPWM161 33 | #define COMPILE_YEAR 2014 34 | 35 | #endif 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testPWM161/projInfo.h 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /icons/Luigi.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | #include "Mario.h" 14 | 15 | 16 | // Luigi -> LuigiRuns... 17 | #define LUIGI_MOTIONS MARIO_MOTIONS 18 | 19 | //Luigi is identical to Mario, except in color-scheme... 20 | 21 | const static uint8_t pgm_paletteLUIGI[4*NUMPALETTES_MARIO] PROGMEM = 22 | { 23 | 37, //rgb8(141,157,255), //Yeah, this doesn't work at all. 24 | rgb2(0,1,0), //rgb8(141,157, 60), 25 | //This should be fixed, now... 26 | //#ifdef __LVDS_H__ 27 | //Apparently lvds.h blue-val=3 -> 0 ?! 28 | // rgb2(3,3,2), //rgb2(2,0,0), //rgb8(255, 28, 60), 29 | //63, 30 | //#else 31 | rgb2(3,3,3), 32 | //#endif 33 | rgb8(255,157, 60) //Skin 34 | }; 35 | 36 | const __flash sprite_t spriteLUIGI = 37 | { 38 | pgm_imageMARIO, //Same as Mario... 39 | pgm_maskMARIO, 40 | pgm_paletteLUIGI, 41 | NUMPALETTES_MARIO, 42 | LUIGI_MOTIONS, 43 | NadaFlip, 44 | DefaultMotion, 45 | DefaultLayer, 46 | DefaultCamMotion, 47 | NULL, 48 | 1 49 | }; 50 | 51 | /* mehPL: 52 | * I would love to believe in a world where licensing shouldn't be 53 | * necessary; where people would respect others' work and wishes, 54 | * and give credit where it's due. 55 | * A world where those who find people's work useful would at least 56 | * send positive vibes--if not an email. 57 | * A world where we wouldn't have to think about the potential 58 | * legal-loopholes that others may take advantage of. 59 | * 60 | * Until that world exists: 61 | * 62 | * This software and associated hardware design is free to use, 63 | * modify, and even redistribute, etc. with only a few exceptions 64 | * I've thought-up as-yet (this list may be appended-to, hopefully it 65 | * doesn't have to be): 66 | * 67 | * 1) Please do not change/remove this licensing info. 68 | * 2) Please do not change/remove others' credit/licensing/copyright 69 | * info, where noted. 70 | * 3) If you find yourself profiting from my work, please send me a 71 | * beer, a trinket, or cash is always handy as well. 72 | * (Please be considerate. E.G. if you've reposted my work on a 73 | * revenue-making (ad-based) website, please think of the 74 | * years and years of hard work that went into this!) 75 | * 4) If you *intend* to profit from my work, you must get my 76 | * permission, first. 77 | * 5) No permission is given for my work to be used in Military, NSA, 78 | * or other creepy-ass purposes. No exceptions. And if there's 79 | * any question in your mind as to whether your project qualifies 80 | * under this category, you must get my explicit permission. 81 | * 82 | * The open-sourced project this originated from is ~98% the work of 83 | * the original author, except where otherwise noted. 84 | * That includes the "commonCode" and makefiles. 85 | * Thanks, of course, should be given to those who worked on the tools 86 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 87 | * I'm certain many others. 88 | * And, as well, to the countless coders who've taken time to post 89 | * solutions to issues I couldn't solve, all over the internets. 90 | * 91 | * 92 | * I'd love to hear of how this is being used, suggestions for 93 | * improvements, etc! 94 | * 95 | * The creator of the original code and original hardware can be 96 | * contacted at: 97 | * 98 | * EricWazHung At Gmail Dotcom 99 | * 100 | * This code's origin (and latest versions) can be found at: 101 | * 102 | * https://code.google.com/u/ericwazhung/ 103 | * 104 | * The site associated with the original open-sourced project is at: 105 | * 106 | * https://sites.google.com/site/geekattempts/ 107 | * 108 | * If any of that ever changes, I will be sure to note it here, 109 | * and add a link at the pages above. 110 | * 111 | * This license added to the original file located at: 112 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/icons/Luigi.h 113 | * 114 | * (Wow, that's a lot longer than I'd hoped). 115 | * 116 | * Enjoy! 117 | */ 118 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testPWM161+button/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header[] = ""; 18 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 19 | const uint8_t __attribute__ ((progmem)) \ 20 | header[] = "heartbeatTesttestPWM161+button 2014-04-22 01:35:50"; 21 | #else //projInfo Not Shortened nor overridden 22 | const uint8_t __attribute__ ((progmem)) \ 23 | header0[] = " /Users/meh/_commonCode/heartbeat/1.30/testPWM161+button "; 24 | const uint8_t __attribute__ ((progmem)) \ 25 | header1[] = " Tue Apr 22 01:35:50 PDT 2014 "; 26 | const uint8_t __attribute__ ((progmem)) \ 27 | headerOpt[] = " "; 28 | #endif 29 | 30 | //For internal use... 31 | //Currently only usable in main.c 32 | #define PROJ_VER testPWM161+button 33 | #define COMPILE_YEAR 2014 34 | 35 | #endif 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testPWM161+button/projInfo.h 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testPWM161+button+DMS/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header[] = ""; 18 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 19 | const uint8_t __attribute__ ((progmem)) \ 20 | header[] = "heartbeatTesttestPWM161+button+DMS 2014-05-09 16:20:40"; 21 | #else //projInfo Not Shortened nor overridden 22 | const uint8_t __attribute__ ((progmem)) \ 23 | header0[] = " /Users/meh/_commonCode/heartbeat/1.50/testPWM161+button+DMS "; 24 | const uint8_t __attribute__ ((progmem)) \ 25 | header1[] = " Fri May 9 16:20:40 PDT 2014 "; 26 | const uint8_t __attribute__ ((progmem)) \ 27 | headerOpt[] = " "; 28 | #endif 29 | 30 | //For internal use... 31 | //Currently only usable in main.c 32 | #define PROJ_VER testPWM161+button+DMS 33 | #define COMPILE_YEAR 2014 34 | 35 | #endif 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testPWM161+button+DMS/projInfo.h 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /icons/SolidBump.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | #ifndef __SOLIDBUMP_H__ 20 | #define __SOLIDBUMP_H__ 21 | 22 | #include "iconPacking.h" 23 | #include "defaultMotion.c" 24 | #include "Solid.h" 25 | 26 | 27 | #define SOLIDBUMP_SPRITES 1 28 | //#define SOLIDBUMP_MOTIONS 5 29 | #define SOLIDBUMP_MOTIONS 3 30 | 31 | const uint8_t SolidBumpY[MOTION_BYTES(SOLIDBUMP_MOTIONS)] MOTION_MEM = 32 | { 33 | //PACK_MOTION_BYTE( 2, 1, DIR_TOGGLE, 1), 34 | //PACK_MOTION_BYTE( 2, 0, 0, 0) 35 | PACK_MOTION_BYTE( 2, DIR_TOGGLE, 2, 0), 36 | //PACK_MOTION_BYTE( 2, 0, 0, 0) 37 | }; 38 | 39 | 40 | const __flash motion_t SolidBumpMotion[2] = 41 | { {0, NULL}, {0, SolidBumpY} }; 42 | 43 | 44 | const __flash sprite_t spriteSOLIDBUMP = 45 | { 46 | pgm_imageSOLID, 47 | pgm_maskSOLID, 48 | pgm_paletteSOLID, 49 | NUMPALETTES_SOLID, 50 | SOLIDBUMP_MOTIONS, 51 | NadaFlip, 52 | SolidBumpMotion, 53 | DefaultLayer, //Now handles up to 64 motions... 54 | NadaMotion, 55 | NULL, 56 | SOLIDBUMP_SPRITES 57 | }; 58 | 59 | #endif 60 | 61 | /* mehPL: 62 | * I would love to believe in a world where licensing shouldn't be 63 | * necessary; where people would respect others' work and wishes, 64 | * and give credit where it's due. 65 | * A world where those who find people's work useful would at least 66 | * send positive vibes--if not an email. 67 | * A world where we wouldn't have to think about the potential 68 | * legal-loopholes that others may take advantage of. 69 | * 70 | * Until that world exists: 71 | * 72 | * This software and associated hardware design is free to use, 73 | * modify, and even redistribute, etc. with only a few exceptions 74 | * I've thought-up as-yet (this list may be appended-to, hopefully it 75 | * doesn't have to be): 76 | * 77 | * 1) Please do not change/remove this licensing info. 78 | * 2) Please do not change/remove others' credit/licensing/copyright 79 | * info, where noted. 80 | * 3) If you find yourself profiting from my work, please send me a 81 | * beer, a trinket, or cash is always handy as well. 82 | * (Please be considerate. E.G. if you've reposted my work on a 83 | * revenue-making (ad-based) website, please think of the 84 | * years and years of hard work that went into this!) 85 | * 4) If you *intend* to profit from my work, you must get my 86 | * permission, first. 87 | * 5) No permission is given for my work to be used in Military, NSA, 88 | * or other creepy-ass purposes. No exceptions. And if there's 89 | * any question in your mind as to whether your project qualifies 90 | * under this category, you must get my explicit permission. 91 | * 92 | * The open-sourced project this originated from is ~98% the work of 93 | * the original author, except where otherwise noted. 94 | * That includes the "commonCode" and makefiles. 95 | * Thanks, of course, should be given to those who worked on the tools 96 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 97 | * I'm certain many others. 98 | * And, as well, to the countless coders who've taken time to post 99 | * solutions to issues I couldn't solve, all over the internets. 100 | * 101 | * 102 | * I'd love to hear of how this is being used, suggestions for 103 | * improvements, etc! 104 | * 105 | * The creator of the original code and original hardware can be 106 | * contacted at: 107 | * 108 | * EricWazHung At Gmail Dotcom 109 | * 110 | * This code's origin (and latest versions) can be found at: 111 | * 112 | * https://code.google.com/u/ericwazhung/ 113 | * 114 | * The site associated with the original open-sourced project is at: 115 | * 116 | * https://sites.google.com/site/geekattempts/ 117 | * 118 | * If any of that ever changes, I will be sure to note it here, 119 | * and add a link at the pages above. 120 | * 121 | * This license added to the original file located at: 122 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/icons/1up.h 123 | * 124 | * (Wow, that's a lot longer than I'd hoped). 125 | * 126 | * Enjoy! 127 | */ 128 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testPWM161+button+TCNTER/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header[] = ""; 18 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 19 | const uint8_t __attribute__ ((progmem)) \ 20 | header[] = "heartbeatTesttestPWM161+button+TCNTER 2014-05-13 23:41:01"; 21 | #else //projInfo Not Shortened nor overridden 22 | const uint8_t __attribute__ ((progmem)) \ 23 | header0[] = " /Users/meh/_commonCode/heartbeat/1.50/testPWM161+button+TCNTER "; 24 | const uint8_t __attribute__ ((progmem)) \ 25 | header1[] = " Tue May 13 23:41:01 PDT 2014 "; 26 | const uint8_t __attribute__ ((progmem)) \ 27 | headerOpt[] = " "; 28 | #endif 29 | 30 | //For internal use... 31 | //Currently only usable in main.c 32 | #define PROJ_VER testPWM161+button+TCNTER 33 | #define COMPILE_YEAR 2014 34 | 35 | #endif 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testPWM161+button+TCNTER/projInfo.h 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header[] = ""; 18 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 19 | const uint8_t __attribute__ ((progmem)) \ 20 | header[] = "heartbeatTesttestTiny861+button+TCNTER 2014-05-27 14:11:17"; 21 | #else //projInfo Not Shortened nor overridden 22 | const uint8_t __attribute__ ((progmem)) \ 23 | header0[] = " /Users/meh/_commonCode/heartbeat/1.50/testTiny861+button+TCNTER "; 24 | const uint8_t __attribute__ ((progmem)) \ 25 | header1[] = " Tue May 27 14:11:18 PDT 2014 "; 26 | const uint8_t __attribute__ ((progmem)) \ 27 | headerOpt[] = " "; 28 | #endif 29 | 30 | //For internal use... 31 | //Currently only usable in main.c 32 | #define PROJ_VER testTiny861+button+TCNTER 33 | #define COMPILE_YEAR 2014 34 | 35 | #endif 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER/projInfo.h 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER_PA6/projInfo.h: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | //Auto-generated by makefile 10 | 11 | #ifndef __PROJINFO_H__ 12 | #define __PROJINFO_H__ 13 | #include 14 | 15 | #if (defined(_PROJINFO_OVERRIDE_) && _PROJINFO_OVERRIDE_) 16 | const uint8_t __attribute__ ((progmem)) \ 17 | header[] = ""; 18 | #elif (defined(PROJINFO_SHORT) && PROJINFO_SHORT) 19 | const uint8_t __attribute__ ((progmem)) \ 20 | header[] = "heartbeatTesttestTiny861+button+TCNTER_PA6 2014-05-27 17:23:25"; 21 | #else //projInfo Not Shortened nor overridden 22 | const uint8_t __attribute__ ((progmem)) \ 23 | header0[] = " /Users/meh/_commonCode/heartbeat/1.50/testTiny861+button+TCNTER_PA6 "; 24 | const uint8_t __attribute__ ((progmem)) \ 25 | header1[] = " Tue May 27 17:23:25 PDT 2014 "; 26 | const uint8_t __attribute__ ((progmem)) \ 27 | headerOpt[] = " "; 28 | #endif 29 | 30 | //For internal use... 31 | //Currently only usable in main.c 32 | #define PROJ_VER testTiny861+button+TCNTER_PA6 33 | #define COMPILE_YEAR 2014 34 | 35 | #endif 36 | 37 | /* mehPL: 38 | * I would love to believe in a world where licensing shouldn't be 39 | * necessary; where people would respect others' work and wishes, 40 | * and give credit where it's due. 41 | * A world where those who find people's work useful would at least 42 | * send positive vibes--if not an email. 43 | * A world where we wouldn't have to think about the potential 44 | * legal-loopholes that others may take advantage of. 45 | * 46 | * Until that world exists: 47 | * 48 | * This software and associated hardware design is free to use, 49 | * modify, and even redistribute, etc. with only a few exceptions 50 | * I've thought-up as-yet (this list may be appended-to, hopefully it 51 | * doesn't have to be): 52 | * 53 | * 1) Please do not change/remove this licensing info. 54 | * 2) Please do not change/remove others' credit/licensing/copyright 55 | * info, where noted. 56 | * 3) If you find yourself profiting from my work, please send me a 57 | * beer, a trinket, or cash is always handy as well. 58 | * (Please be considerate. E.G. if you've reposted my work on a 59 | * revenue-making (ad-based) website, please think of the 60 | * years and years of hard work that went into this!) 61 | * 4) If you *intend* to profit from my work, you must get my 62 | * permission, first. 63 | * 5) No permission is given for my work to be used in Military, NSA, 64 | * or other creepy-ass purposes. No exceptions. And if there's 65 | * any question in your mind as to whether your project qualifies 66 | * under this category, you must get my explicit permission. 67 | * 68 | * The open-sourced project this originated from is ~98% the work of 69 | * the original author, except where otherwise noted. 70 | * That includes the "commonCode" and makefiles. 71 | * Thanks, of course, should be given to those who worked on the tools 72 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 73 | * I'm certain many others. 74 | * And, as well, to the countless coders who've taken time to post 75 | * solutions to issues I couldn't solve, all over the internets. 76 | * 77 | * 78 | * I'd love to hear of how this is being used, suggestions for 79 | * improvements, etc! 80 | * 81 | * The creator of the original code and original hardware can be 82 | * contacted at: 83 | * 84 | * EricWazHung At Gmail Dotcom 85 | * 86 | * This code's origin (and latest versions) can be found at: 87 | * 88 | * https://code.google.com/u/ericwazhung/ 89 | * 90 | * The site associated with the original open-sourced project is at: 91 | * 92 | * https://sites.google.com/site/geekattempts/ 93 | * 94 | * If any of that ever changes, I will be sure to note it here, 95 | * and add a link at the pages above. 96 | * 97 | * This license added to the original file located at: 98 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/heartbeat/1.50/testTiny861+button+TCNTER_PA6/projInfo.h 99 | * 100 | * (Wow, that's a lot longer than I'd hoped). 101 | * 102 | * Enjoy! 103 | */ 104 | -------------------------------------------------------------------------------- /_commonCode_localized/adc/0.20/adc.mk: -------------------------------------------------------------------------------- 1 | #/* mehPL: 2 | # * This is Open Source, but NOT GPL. I call it mehPL. 3 | # * I'm not too fond of long licenses at the top of the file. 4 | # * Please see the bottom. 5 | # * Enjoy! 6 | # */ 7 | # 8 | # 9 | # adc doesn't depend on any other libraries... 10 | 11 | # The following variables are expected to be defined in the calling makefile(s) 12 | # ADC_LIB - Path to motorPoxn library files, including filename, excluding extensions 13 | # TCOMDIR 14 | 15 | # optional definitions (in gcc -D listing) TRUE or FALSE 16 | # __TODO_WARN__ - warn about TODOs 17 | # __UNKN_WARN__ - warn about unknowns/untesteds 18 | # __OPTIM_WARN__ - warn of potential optimizations 19 | # __ERR_WARN__ - warn of potential errors (divide-by-zero, etc...) 20 | 21 | 22 | 23 | #only include adc once... 24 | ifneq ($(ADC_INCLUDED),true) 25 | ADC_INCLUDED = true 26 | 27 | 28 | CFLAGS += -D'_ADC_HEADER_="$(ADC_LIB).h"' 29 | 30 | # The following variables are defined here for called makefile(s) 31 | #VER_PWM_DEP = 0.91 32 | #PWM_DEP_LIB = $(TCOMDIR)/pwm_dep/$(VER_PWM_DEP)/pwm_dep 33 | 34 | #Add this library's source code to SRC 35 | SRC += $(ADC_LIB).c 36 | 37 | #include the libraries this one depends on 38 | #include $(LMD18200_LIB).mk \ 39 | 40 | endif 41 | 42 | #/* mehPL: 43 | # * I would love to believe in a world where licensing shouldn't be 44 | # * necessary; where people would respect others' work and wishes, 45 | # * and give credit where it's due. 46 | # * A world where those who find people's work useful would at least 47 | # * send positive vibes--if not an email. 48 | # * A world where we wouldn't have to think about the potential 49 | # * legal-loopholes that others may take advantage of. 50 | # * 51 | # * Until that world exists: 52 | # * 53 | # * This software and associated hardware design is free to use, 54 | # * modify, and even redistribute, etc. with only a few exceptions 55 | # * I've thought-up as-yet (this list may be appended-to, hopefully it 56 | # * doesn't have to be): 57 | # * 58 | # * 1) Please do not change/remove this licensing info. 59 | # * 2) Please do not change/remove others' credit/licensing/copyright 60 | # * info, where noted. 61 | # * 3) If you find yourself profiting from my work, please send me a 62 | # * beer, a trinket, or cash is always handy as well. 63 | # * (Please be considerate. E.G. if you've reposted my work on a 64 | # * revenue-making (ad-based) website, please think of the 65 | # * years and years of hard work that went into this!) 66 | # * 4) If you *intend* to profit from my work, you must get my 67 | # * permission, first. 68 | # * 5) No permission is given for my work to be used in Military, NSA, 69 | # * or other creepy-ass purposes. No exceptions. And if there's 70 | # * any question in your mind as to whether your project qualifies 71 | # * under this category, you must get my explicit permission. 72 | # * 73 | # * The open-sourced project this originated from is ~98% the work of 74 | # * the original author, except where otherwise noted. 75 | # * That includes the "commonCode" and makefiles. 76 | # * Thanks, of course, should be given to those who worked on the tools 77 | # * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 78 | # * I'm certain many others. 79 | # * And, as well, to the countless coders who've taken time to post 80 | # * solutions to issues I couldn't solve, all over the internets. 81 | # * 82 | # * 83 | # * I'd love to hear of how this is being used, suggestions for 84 | # * improvements, etc! 85 | # * 86 | # * The creator of the original code and original hardware can be 87 | # * contacted at: 88 | # * 89 | # * EricWazHung At Gmail Dotcom 90 | # * 91 | # * This code's origin (and latest versions) can be found at: 92 | # * 93 | # * https://code.google.com/u/ericwazhung/ 94 | # * 95 | # * The site associated with the original open-sourced project is at: 96 | # * 97 | # * https://sites.google.com/site/geekattempts/ 98 | # * 99 | # * If any of that ever changes, I will be sure to note it here, 100 | # * and add a link at the pages above. 101 | # * 102 | # * This license added to the original file located at: 103 | # * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/adc/0.20/adc.mk 104 | # * 105 | # * (Wow, that's a lot longer than I'd hoped). 106 | # * 107 | # * Enjoy! 108 | # */ 109 | -------------------------------------------------------------------------------- /_commonCode_localized/timerCommon/1.22/timerCommon.mk: -------------------------------------------------------------------------------- 1 | #/* mehPL: 2 | # * This is Open Source, but NOT GPL. I call it mehPL. 3 | # * I'm not too fond of long licenses at the top of the file. 4 | # * Please see the bottom. 5 | # * Enjoy! 6 | # */ 7 | # 8 | # 9 | # timerCommon doesn't depend on other libraries... 10 | 11 | # The following variables are expected to be defined in the calling makefile(s) 12 | # TIMERCOMMON_LIB - Path to timerCommon library files, including filename, excluding extensions 13 | # TCOMDIR 14 | 15 | # optional definitions (in gcc -D listing) TRUE or FALSE 16 | # __TODO_WARN__ - warn about TODOs 17 | # __UNKN_WARN__ - warn about unknowns/untesteds 18 | # __OPTIM_WARN__ - warn of potential optimizations 19 | # __ERR_WARN__ - warn of potential errors (divide-by-zero, etc...) 20 | 21 | 22 | #only include timerCommon once... 23 | ifneq ($(TIMERCOMMON_INCLUDED),true) 24 | 25 | TIMERCOMMON_INCLUDED = true 26 | CFLAGS += -D'_TIMERCOMMON_INCLUDED_=$(TIMERCOMMON_INCLUDED)' -D'_TIMERCOMMON_HEADER_="$(TIMERCOMMON_LIB).h"' 27 | 28 | # The following variables are defined here for called makefile(s) 29 | 30 | #Add this library's source code to SRC 31 | SRC += $(TIMERCOMMON_LIB).c 32 | #include the libraries this one depends on 33 | 34 | endif 35 | 36 | #/* mehPL: 37 | # * I would love to believe in a world where licensing shouldn't be 38 | # * necessary; where people would respect others' work and wishes, 39 | # * and give credit where it's due. 40 | # * A world where those who find people's work useful would at least 41 | # * send positive vibes--if not an email. 42 | # * A world where we wouldn't have to think about the potential 43 | # * legal-loopholes that others may take advantage of. 44 | # * 45 | # * Until that world exists: 46 | # * 47 | # * This software and associated hardware design is free to use, 48 | # * modify, and even redistribute, etc. with only a few exceptions 49 | # * I've thought-up as-yet (this list may be appended-to, hopefully it 50 | # * doesn't have to be): 51 | # * 52 | # * 1) Please do not change/remove this licensing info. 53 | # * 2) Please do not change/remove others' credit/licensing/copyright 54 | # * info, where noted. 55 | # * 3) If you find yourself profiting from my work, please send me a 56 | # * beer, a trinket, or cash is always handy as well. 57 | # * (Please be considerate. E.G. if you've reposted my work on a 58 | # * revenue-making (ad-based) website, please think of the 59 | # * years and years of hard work that went into this!) 60 | # * 4) If you *intend* to profit from my work, you must get my 61 | # * permission, first. 62 | # * 5) No permission is given for my work to be used in Military, NSA, 63 | # * or other creepy-ass purposes. No exceptions. And if there's 64 | # * any question in your mind as to whether your project qualifies 65 | # * under this category, you must get my explicit permission. 66 | # * 67 | # * The open-sourced project this originated from is ~98% the work of 68 | # * the original author, except where otherwise noted. 69 | # * That includes the "commonCode" and makefiles. 70 | # * Thanks, of course, should be given to those who worked on the tools 71 | # * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 72 | # * I'm certain many others. 73 | # * And, as well, to the countless coders who've taken time to post 74 | # * solutions to issues I couldn't solve, all over the internets. 75 | # * 76 | # * 77 | # * I'd love to hear of how this is being used, suggestions for 78 | # * improvements, etc! 79 | # * 80 | # * The creator of the original code and original hardware can be 81 | # * contacted at: 82 | # * 83 | # * EricWazHung At Gmail Dotcom 84 | # * 85 | # * This code's origin (and latest versions) can be found at: 86 | # * 87 | # * https://code.google.com/u/ericwazhung/ 88 | # * 89 | # * The site associated with the original open-sourced project is at: 90 | # * 91 | # * https://sites.google.com/site/geekattempts/ 92 | # * 93 | # * If any of that ever changes, I will be sure to note it here, 94 | # * and add a link at the pages above. 95 | # * 96 | # * This license added to the original file located at: 97 | # * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/timerCommon/1.22/timerCommon.mk 98 | # * 99 | # * (Wow, that's a lot longer than I'd hoped). 100 | # * 101 | # * Enjoy! 102 | # */ 103 | -------------------------------------------------------------------------------- /_commonCode_localized/hfModulation/1.00/test/hfmTest6.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | #include 10 | #define TRUE 1 11 | #define FALSE 0 12 | #include "../hfModulation.c" 13 | 14 | int main(void) 15 | { 16 | hfm_t hfmThing; 17 | 18 | hfm_setup(&hfmThing, 30, 50); 19 | 20 | int i; 21 | 22 | printf("Go!\n"); 23 | printf("\n"); 24 | 25 | int useSetPower; 26 | for(useSetPower=0; useSetPower<=1; useSetPower++) 27 | { 28 | if(useSetPower) 29 | printf("Using hfm_setPower on each change:\n"); 30 | else 31 | printf("Using hfm_setup on each change:\n"); 32 | 33 | 34 | int j; 35 | for(j=0; j<10; j++) 36 | { 37 | int k = (j > 5) ? 9-j : j; 38 | 39 | printf("%d/%d:", k, 5); 40 | 41 | if(useSetPower) 42 | hfm_setPower(&hfmThing, k); 43 | else 44 | hfm_setup(&hfmThing, k, 5); 45 | 46 | for(i=0; i<=73; i++) 47 | { 48 | //int output = hfm_nextOutput(&hfmThing); 49 | 50 | //if(output) 51 | // printf("#\n"); 52 | //else 53 | // printf("\n"); 54 | 55 | //hfm_setPower&hfmThing, i); 56 | printf("%c", (hfm_nextOutput(&hfmThing) ? '#' : ' ')); 57 | } 58 | printf("\n"); 59 | } 60 | } 61 | 62 | printf("\n"); 63 | } 64 | /* mehPL: 65 | * I would love to believe in a world where licensing shouldn't be 66 | * necessary; where people would respect others' work and wishes, 67 | * and give credit where it's due. 68 | * A world where those who find people's work useful would at least 69 | * send positive vibes--if not an email. 70 | * A world where we wouldn't have to think about the potential 71 | * legal-loopholes that others may take advantage of. 72 | * 73 | * Until that world exists: 74 | * 75 | * This software and associated hardware design is free to use, 76 | * modify, and even redistribute, etc. with only a few exceptions 77 | * I've thought-up as-yet (this list may be appended-to, hopefully it 78 | * doesn't have to be): 79 | * 80 | * 1) Please do not change/remove this licensing info. 81 | * 2) Please do not change/remove others' credit/licensing/copyright 82 | * info, where noted. 83 | * 3) If you find yourself profiting from my work, please send me a 84 | * beer, a trinket, or cash is always handy as well. 85 | * (Please be considerate. E.G. if you've reposted my work on a 86 | * revenue-making (ad-based) website, please think of the 87 | * years and years of hard work that went into this!) 88 | * 4) If you *intend* to profit from my work, you must get my 89 | * permission, first. 90 | * 5) No permission is given for my work to be used in Military, NSA, 91 | * or other creepy-ass purposes. No exceptions. And if there's 92 | * any question in your mind as to whether your project qualifies 93 | * under this category, you must get my explicit permission. 94 | * 95 | * The open-sourced project this originated from is ~98% the work of 96 | * the original author, except where otherwise noted. 97 | * That includes the "commonCode" and makefiles. 98 | * Thanks, of course, should be given to those who worked on the tools 99 | * I've used: avr-dude, avr-gcc, gnu-make, vim, usb-tiny, and 100 | * I'm certain many others. 101 | * And, as well, to the countless coders who've taken time to post 102 | * solutions to issues I couldn't solve, all over the internets. 103 | * 104 | * 105 | * I'd love to hear of how this is being used, suggestions for 106 | * improvements, etc! 107 | * 108 | * The creator of the original code and original hardware can be 109 | * contacted at: 110 | * 111 | * EricWazHung At Gmail Dotcom 112 | * 113 | * This code's origin (and latest versions) can be found at: 114 | * 115 | * https://code.google.com/u/ericwazhung/ 116 | * 117 | * The site associated with the original open-sourced project is at: 118 | * 119 | * https://sites.google.com/site/geekattempts/ 120 | * 121 | * If any of that ever changes, I will be sure to note it here, 122 | * and add a link at the pages above. 123 | * 124 | * This license added to the original file located at: 125 | * /Users/meh/_avrProjects/LCDdirectLVDS/93-checkingProcessAgain/_commonCode_localized/hfModulation/1.00/test/hfmTest6.c 126 | * 127 | * (Wow, that's a lot longer than I'd hoped). 128 | * 129 | * Enjoy! 130 | */ 131 | -------------------------------------------------------------------------------- /_options/fb_writeColorCalls.err: -------------------------------------------------------------------------------- 1 | //This file contains consecutive writeColor calls 2 | // in such a way that they'll be optimized not to use pointer-arithmetic, 3 | // nor a for-loop which requires counters, jumps, and tests that take quite 4 | // a bit of overhead 5 | 6 | //This file was mostly generated by _tools/createUnrolledLoop.sh 7 | // But had to be hand-modified (and that script probably won't run on your 8 | // system as-is, as it depends on other scripts I have) 9 | 10 | #if(FB_WIDTH==(2)) 11 | writeColor(TRUE, *(color+1)); 12 | #elif(FB_WIDTH==(3)) 13 | writeColor(TRUE, *(color+2)); 14 | #elif(FB_WIDTH==(4)) 15 | writeColor(TRUE, *(color+3)); 16 | #elif(FB_WIDTH==(5)) 17 | writeColor(TRUE, *(color+4)); 18 | #elif(FB_WIDTH==(6)) 19 | writeColor(TRUE, *(color+5)); 20 | #elif(FB_WIDTH==(7)) 21 | writeColor(TRUE, *(color+6)); 22 | #elif(FB_WIDTH==(8)) 23 | writeColor(TRUE, *(color+7)); 24 | #elif(FB_WIDTH==(9)) 25 | writeColor(TRUE, *(color+8)); 26 | #elif(FB_WIDTH==(10)) 27 | writeColor(TRUE, *(color+9)); 28 | #elif(FB_WIDTH==(11)) 29 | writeColor(TRUE, *(color+10)); 30 | #elif(FB_WIDTH==(12)) 31 | writeColor(TRUE, *(color+11)); 32 | #elif(FB_WIDTH==(13)) 33 | writeColor(TRUE, *(color+12)); 34 | #elif(FB_WIDTH==(14)) 35 | writeColor(TRUE, *(color+13)); 36 | #elif(FB_WIDTH==(15)) 37 | writeColor(TRUE, *(color+14)); 38 | #elif(FB_WIDTH==(16)) 39 | writeColor(TRUE, *(color+15)); 40 | #elif(FB_WIDTH==(17)) 41 | writeColor(TRUE, *(color+16)); 42 | #elif(FB_WIDTH==(18)) 43 | writeColor(TRUE, *(color+17)); 44 | #elif(FB_WIDTH==(19)) 45 | writeColor(TRUE, *(color+18)); 46 | #elif(FB_WIDTH==(20)) 47 | writeColor(TRUE, *(color+19)); 48 | #elif(FB_WIDTH==(21)) 49 | writeColor(TRUE, *(color+20)); 50 | #elif(FB_WIDTH==(22)) 51 | writeColor(TRUE, *(color+21)); 52 | #elif(FB_WIDTH==(23)) 53 | writeColor(TRUE, *(color+22)); 54 | #elif(FB_WIDTH==(24)) 55 | writeColor(TRUE, *(color+23)); 56 | #elif(FB_WIDTH==(25)) 57 | writeColor(TRUE, *(color+24)); 58 | #elif(FB_WIDTH==(26)) 59 | writeColor(TRUE, *(color+25)); 60 | #elif(FB_WIDTH==(27)) 61 | writeColor(TRUE, *(color+26)); 62 | #elif(FB_WIDTH==(28)) 63 | writeColor(TRUE, *(color+27)); 64 | #elif(FB_WIDTH==(29)) 65 | writeColor(TRUE, *(color+28)); 66 | #elif(FB_WIDTH==(30)) 67 | writeColor(TRUE, *(color+29)); 68 | #elif(FB_WIDTH==(31)) 69 | writeColor(TRUE, *(color+30)); 70 | #elif(FB_WIDTH==(32)) 71 | writeColor(TRUE, *(color+31)); 72 | #elif(FB_WIDTH==(33)) 73 | writeColor(TRUE, *(color+32)); 74 | #elif(FB_WIDTH==(34)) 75 | writeColor(TRUE, *(color+33)); 76 | #elif(FB_WIDTH==(35)) 77 | writeColor(TRUE, *(color+34)); 78 | #elif(FB_WIDTH==(36)) 79 | writeColor(TRUE, *(color+35)); 80 | #elif(FB_WIDTH==(37)) 81 | writeColor(TRUE, *(color+36)); 82 | #elif(FB_WIDTH==(38)) 83 | writeColor(TRUE, *(color+37)); 84 | #elif(FB_WIDTH==(39)) 85 | writeColor(TRUE, *(color+38)); 86 | #elif(FB_WIDTH==(40)) 87 | writeColor(TRUE, *(color+39)); 88 | #elif(FB_WIDTH==(41)) 89 | writeColor(TRUE, *(color+40)); 90 | #elif(FB_WIDTH==(42)) 91 | writeColor(TRUE, *(color+41)); 92 | #elif(FB_WIDTH==(43)) 93 | writeColor(TRUE, *(color+42)); 94 | #elif(FB_WIDTH==(44)) 95 | writeColor(TRUE, *(color+43)); 96 | #elif(FB_WIDTH==(45)) 97 | writeColor(TRUE, *(color+44)); 98 | #elif(FB_WIDTH==(46)) 99 | writeColor(TRUE, *(color+45)); 100 | #elif(FB_WIDTH==(47)) 101 | writeColor(TRUE, *(color+46)); 102 | #elif(FB_WIDTH==(48)) 103 | writeColor(TRUE, *(color+47)); 104 | #elif(FB_WIDTH==(49)) 105 | writeColor(TRUE, *(color+48)); 106 | #elif(FB_WIDTH==(50)) 107 | writeColor(TRUE, *(color+49)); 108 | #elif(FB_WIDTH==(51)) 109 | writeColor(TRUE, *(color+50)); 110 | #elif(FB_WIDTH==(52)) 111 | writeColor(TRUE, *(color+51)); 112 | #elif(FB_WIDTH==(53)) 113 | writeColor(TRUE, *(color+52)); 114 | #elif(FB_WIDTH==(54)) 115 | writeColor(TRUE, *(color+53)); 116 | #elif(FB_WIDTH==(55)) 117 | writeColor(TRUE, *(color+54)); 118 | #elif(FB_WIDTH==(56)) 119 | writeColor(TRUE, *(color+55)); 120 | #elif(FB_WIDTH==(57)) 121 | writeColor(TRUE, *(color+56)); 122 | #elif(FB_WIDTH==(58)) 123 | writeColor(TRUE, *(color+57)); 124 | #elif(FB_WIDTH==(59)) 125 | writeColor(TRUE, *(color+58)); 126 | #elif(FB_WIDTH==(60)) 127 | writeColor(TRUE, *(color+59)); 128 | #elif(FB_WIDTH==(61)) 129 | writeColor(TRUE, *(color+60)); 130 | #elif(FB_WIDTH==(62)) 131 | writeColor(TRUE, *(color+61)); 132 | #elif(FB_WIDTH==(63)) 133 | writeColor(TRUE, *(color+62)); 134 | #elif(FB_WIDTH==(64)) 135 | writeColor(TRUE, *(color+63)); 136 | #else 137 | #error "FB_WIDTH is too large for fb_writeColorCalls.c" 138 | #endif 139 | -------------------------------------------------------------------------------- /_unusedIdeas/pixelScroll.c: -------------------------------------------------------------------------------- 1 | /* mehPL: 2 | * This is Open Source, but NOT GPL. I call it mehPL. 3 | * I'm not too fond of long licenses at the top of the file. 4 | * Please see the bottom. 5 | * Enjoy! 6 | */ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | //These are only used in drawPix... 20 | //This probably has no purpose outside of COLOR_BAR_SCROLL below 21 | // Actually, it's kinda funny watcching the top of the smiley's 22 | // head scroll... like he's getting a brain transplant 23 | //#define PIXEL_SCROLL TRUE 24 | 25 | 26 | 27 | 28 | void pixelScroll_main(void) 29 | { 30 | uint32_t counter=0; 31 | 32 | while(1) 33 | { 34 | if(counter==0) 35 | { 36 | uint8_t firstCol[2]; 37 | firstCol[0] = frameBuffer[0][0]; 38 | firstCol[1] = frameBuffer[1][0]; 39 | 40 | uint8_t i; 41 | for(i=0; i