OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
C:/Developer/Projects/OSCR/oscr-firmware/ArduinoConfig.h
Go to the documentation of this file.
1
13
#pragma once
14
#ifndef CONFIG_H_
15
#define CONFIG_H_
16
34
35
/*==== HARDWARE VERSION ===========================================*/
36
37
/* [ Hardware Version --------------------------------------------- ]
38
* Choose your hardware version:
39
*/
40
41
#define HW_VERSION 5
42
43
/****/
44
45
/* [ Language ----------------------------------------------------- ]
46
* Select your preferred language here.
47
*
48
* Available Options:
49
* LANG_EN : English
50
*/
51
52
#define OSCR_LANGUAGE LANG_EN
53
54
/****/
55
56
/* [ Language ----------------------------------------------------- ]
57
* Select your preferred region here. This only affects the names
58
* of things in UI elements. It does not affect the ability to dump
59
* cartridges in any way.
60
*
61
* This currently only has an effect when `OSCR_LANGUAGE` is set to
62
* English, as most other languages will know the region based on
63
* that.
64
*
65
* When no region is selected both/all names for an option typically
66
* will be shown.
67
*
68
* For example:
69
* - Unset : Genesis/Mega Drive
70
* - NA : Genesis
71
* - EU|AS : Mega Drive
72
*
73
* Available Options:
74
* - REGN_AUTO : Automatic (All for English, or via language)
75
* - REGN_NA : North America
76
* - REGN_EU : Europe
77
* - REGN_AS : Asia (Japan)
78
*/
79
#define OSCR_REGION REGN_NA
80
81
/****/
82
83
/* [ Advanced: Display Type --------------------------------------- ]
84
* Choose a display type:
85
* OUTPUT_SERIAL : Serial
86
* OUTPUT_SSD1306 : SSD1306, 128x64
87
* OUTPUT_OS12864 : ST7567/OS12864, 128x64 (MINI12864)
88
*/
89
90
//#define HARDWARE_OUTPUT_TYPE OUTPUT_SERIAL
91
92
/****/
93
94
/* [ Advanced: Input Type ----------------------------------------- ]
95
* Choose an input type:
96
* INPUT_SERIAL : Serial
97
* INPUT_1BUTTON : 1 push button
98
* INPUT_2BUTTON : 2 push buttons ("HW3 style")
99
* INPUT_ROTARY : Rotary dial + push button ("HW5 style")
100
*/
101
102
//#define HARDWARE_INPUT_TYPE INPUT_SERIAL
103
104
/****/
105
106
/* [ Advanced: Serial Output -------------------------------------- ]
107
* Choose the options your serial console supports:
108
* SERIAL_ASCII : ASCII [default]
109
* SERIAL_ANSI : ANSI
110
*
111
* Hint: Use ASCII if using the Arduino IDE; use ANSI if using a real
112
* terminal program which supports ANSI control codes, such as PuTTY.
113
*/
114
115
//#define OPTION_SERIAL_OUTPUT SERIAL_ANSI
116
117
/****/
118
119
/*==== HARDWARE MODULES ===========================================*/
120
121
/* [ On-board ATmega2560 ------------------------------------------ ]
122
* Enable this if you have an integrated (non-module) ATmega.
123
*/
124
125
#define ENABLE_ONBOARD_ATMEGA
126
127
/****/
128
129
/* [ Automatic Voltage Selection ---------------------------------- ]
130
* Enable this if you have the VSELECT module.
131
*/
132
133
#define ENABLE_VSELECT
134
135
/****/
136
137
/* [ Clock Generator ---------------------------------------------- ]
138
* Disable this if you don't have the clock generator module.
139
*/
140
141
#define ENABLE_CLOCKGEN
142
143
/****/
144
145
/* [ Real Time Clock ---------------------------------------------- ]
146
* Enable this if you have the RTC module. You can configure the
147
* type later in this file.
148
*/
149
150
#define ENABLE_RTC
151
152
/****/
153
154
/*==== GAME SYSTEM CORES ==========================================*/
155
156
/* [ Atari 2600 --------------------------------------------------- ]
157
*/
158
159
//#define ENABLE_2600
160
161
/****/
162
163
/* [ Atari 5200 --------------------------------------------------- ]
164
*/
165
166
//#define ENABLE_5200
167
168
/****/
169
170
/* [ Atari 7800 --------------------------------------------------- ]
171
*/
172
173
//#define ENABLE_7800
174
175
/****/
176
177
/* [ Atari Jaguar ------------------------------------------------- ]
178
*/
179
//#define ENABLE_JAGUAR
180
181
/****/
182
183
/* [ Atari LYNX --------------------------------------------------- ]
184
*/
185
186
//#define ENABLE_LYNX
187
188
/****/
189
190
/* [ Atari 8-bit -------------------------------------------------- ]
191
*/
192
193
//#define ENABLE_ATARI8
194
195
/****/
196
197
/* [ Bally Astrocade ---------------------------------------------- ]
198
*/
199
200
//#define ENABLE_BALLY
201
202
/****/
203
204
/* [ Bandai Little Jammer ----------------------------------------- ]
205
*/
206
207
//#define ENABLE_LJ
208
209
/****/
210
211
/* [ Bandai Little Jammer Pro ------------------------------------- ]
212
*/
213
214
//#define ENABLE_LJPRO
215
216
/****/
217
218
/* [ Benesse Pocket Challenge W ----------------------------------- ]
219
*/
220
221
//#define ENABLE_PCW
222
223
/****/
224
225
/* [ Casio PV-1000 ------------------------------------------------ ]
226
*/
227
228
//#define ENABLE_PV1000
229
230
/****/
231
232
/* [ ColecoVision ------------------------------------------------- ]
233
*/
234
235
//#define ENABLE_COLV
236
237
/****/
238
239
/* [ Commodore 64 ------------------------------------------------- ]
240
*/
241
242
//#define ENABLE_C64
243
244
/****/
245
246
/* [ Commodore VIC-20 --------------------------------------------- ]
247
*/
248
249
//#define ENABLE_VIC20
250
251
/****/
252
253
/* [ Emerson Arcadia 2001 ----------------------------------------- ]
254
*/
255
256
//#define ENABLE_ARC
257
258
/****/
259
260
/* [ Fairchild Channel F ------------------------------------------ ]
261
*/
262
263
//#define ENABLE_FAIRCHILD
264
265
/****/
266
267
/* [ Flash -------------------------------------------------------- ]
268
* Enable flashing most supported repros.
269
*/
270
271
//#define ENABLE_FLASH
272
273
/****/
274
275
/* [ Flash ICs ---------------------------------------------------- ]
276
* Enable flashing 8-/16-bit ICs directly.
277
*/
278
279
//#define ENABLE_FLASH8
280
//#define ENABLE_FLASH16
281
282
/****/
283
284
/* [ Game Boy (Color) and Advance --------------------------------- ]
285
*/
286
287
#define ENABLE_GBX
288
289
/****/
290
291
/* [ Intellivision ------------------------------------------------ ]
292
*/
293
294
//#define ENABLE_INTV
295
296
/****/
297
298
/* [ LeapFrog Leapster -------------------------------------------- ]
299
*/
300
301
//#define ENABLE_LEAP
302
303
/****/
304
305
/* [ Neo Geo Pocket ----------------------------------------------- ]
306
*/
307
308
//#define ENABLE_NGP
309
310
/****/
311
312
/* [ Nintendo 64 -------------------------------------------------- ]
313
*/
314
315
#define ENABLE_N64
316
//#define ENABLE_CONTROLLERTEST
317
318
/****/
319
320
/* [ Nintendo Entertainment System/Family Computer ---------------- ]
321
*/
322
323
#define ENABLE_NES
324
325
/****/
326
327
/* [ Magnavox Odyssey 2 ------------------------------------------- ]
328
*/
329
330
//#define ENABLE_ODY2
331
332
/****/
333
334
/* [ MSX ---------------------------------------------------------- ]
335
*/
336
337
//#define ENABLE_MSX
338
339
/****/
340
341
/* [ PC Engine/TurboGrafx 16 -------------------------------------- ]
342
*/
343
344
//#define ENABLE_PCE
345
346
/****/
347
348
/* [ Pokemon Mini ------------------------------------------------- ]
349
*/
350
351
//#define ENABLE_POKE
352
353
/****/
354
355
/* [ RCA Studio II ------------------------------------------------ ]
356
*/
357
358
//#define ENABLE_RCA
359
360
/****/
361
362
/* [ Sega Master System/Mark III/Game Gear/SG-1000 ---------------- ]
363
*/
364
365
#define ENABLE_SMS
366
367
/****/
368
369
/* [ Sega Mega Drive/Genesis -------------------------------------- ]
370
*/
371
372
#define ENABLE_MD
373
374
/****/
375
376
/* [ Super Famicom SF Memory Cassette ----------------------------- ]
377
*/
378
379
//#define ENABLE_SFM
380
381
/****/
382
383
/* [ Super Famicom Satellaview ------------------------------------ ]
384
*/
385
386
//#define ENABLE_SV
387
388
/****/
389
390
/* [ Super Famicom Sufami Turbo ----------------------------------- ]
391
*/
392
393
//#define ENABLE_ST
394
395
/****/
396
397
/* [ Super Famicom Game Processor RAM Cassette -------------------- ]
398
*/
399
400
//#define ENABLE_GPC
401
402
/****/
403
404
/* [ Super Nintendo ----------------------------------------------- ]
405
*/
406
407
#define ENABLE_SNES
408
409
/****/
410
411
/* [ Texas Instruments TI-99 -------------------------------------- ]
412
*/
413
414
//#define ENABLE_TI99
415
416
/****/
417
418
/* [ Tomy Pyuuta -------------------------------------------------- ]
419
*/
420
421
//#define ENABLE_PYUUTA
422
423
/****/
424
425
/* [ TRS-80 Color Computer ---------------------------------------- ]
426
*/
427
428
//#define ENABLE_TRS80
429
430
/****/
431
432
/* [ Vectrex ------------------------------------------------------ ]
433
*/
434
435
//#define ENABLE_VECTREX
436
437
/****/
438
439
/* [ Virtual Boy -------------------------------------------------- ]
440
*/
441
442
//#define ENABLE_VBOY
443
444
/****/
445
446
/* [ Vtech V.Smile ------------------------------------------------ ]
447
*/
448
449
//#define ENABLE_VSMILE
450
451
/****/
452
453
/* [ Watara Supervision ------------------------------------------- ]
454
*/
455
456
//#define ENABLE_WSV
457
458
/****/
459
460
/* [ WonderSwan and Benesse Pocket Challenge v2 ------------------- ]
461
*/
462
463
//#define ENABLE_WS
464
465
/****/
466
467
/* [ Super A'can -------------------------------------------------- ]
468
*/
469
470
//#define ENABLE_SUPRACAN
471
472
/****/
473
474
/* [ Casio Loopy -------------------------------------------------- ]
475
*/
476
477
//#define ENABLE_LOOPY
478
479
/****/
480
481
/* [ CP System III ------------------------------------------------ ]
482
*/
483
484
//#define ENABLE_CPS3
485
486
/****/
487
488
/*==== FIRMWARE OPTIONS ===========================================*/
489
490
/* [ Voltage Specifier -------------------------------------------- ]
491
* Choose how voltage changes are displayed:
492
* 0: None
493
* 1: Prompt [default]
494
* 2: Title (when 3V)
495
* 3: Both
496
*
497
* This controls how cores communicate the voltage they need. This
498
* setting is ignored if VSELECT is enabled.
499
*/
500
501
//#define OPTION_VOLTAGE_SPECIFIER VLTSPC_PROMPT
502
503
/****/
504
505
/* [ Config File -------------------------------------------------- ]
506
* Allow changing some configuration values via a config file. You
507
* generally can only use the config to set options or disable
508
* certain featuress. It cannot be used to toggle firmware options
509
* on, only off.
510
*
511
* Note For Developers: See OSCR.* for info.
512
*
513
* Filename: config.txt
514
*/
515
516
#define ENABLE_CONFIG
517
518
/****/
519
520
/* [ Performance Optimizations ------------------------------------ ]
521
* This option allows for configuring several often-called methods
522
* to always be inlined, resulting in better performance at the
523
* cost of program size.
524
*
525
* - PRFOPT_CRC32
526
* - PRFOPT_FILEWR
527
* - PRFOPT_FILERD
528
* - PRFOPT_SHRDFILE
529
* - PRFOPT_FAST64
530
* - PRFOPT_SPEEDORDEATH
531
*/
532
533
//#define OPTION_PERFORMANCE_FLAGS (0)
534
//#define OPTION_PERFORMANCE_FLAGS (PRFOPT_CRC32)
535
536
/****/
537
538
/* [ Power Saving ------------------------------------------------- ]
539
* Enable power saving.
540
*/
541
#define ENABLE_POWERSAVING
542
543
/* [ Power Saving Method ------------------------------------------ ]
544
* Choose the power saving methods used via bitflag.
545
*
546
* Options:
547
* - POWERSAVING_DISPLAY_DIM : Dim the display (and LEDs).
548
* - POWERSAVING_DISPLAY_OFF : Turn off the display (and LEDs).
549
* - POWERSAVING_SLOWCLOCK : Reduce the MCU's clock speed.
550
*
551
* All of these are pretty unobstrusive so by default they are all
552
* enabled here.
553
*/
554
#define OPTION_POWERSAVING_METHOD (POWERSAVING_DISPLAY_DIM | POWERSAVING_DISPLAY_OFF | POWERSAVING_SLOWCLOCK)
555
556
/* [ Power Saving Dim Timeout ------------------------------------- ]
557
* Idle time before dimming the display.
558
*/
559
#define OPTION_POWERSAVING_IDLE_DIM 30000
560
561
/* [ Power Saving Sleep Timeout ----------------------------------- ]
562
* Idle time before fully sleeping.
563
*/
564
#define OPTION_POWERSAVING_IDLE_SLEEP 60000
565
566
/****/
567
568
/* [ Directory Naming --------------------------------------------- ]
569
* How should directory names be kept unique?
570
*
571
* Options:
572
* - UNQDIR_AUTO : Autoselect [default]
573
* - UNQDIR_INCREMENT : Use incrementing value stored in EEPROM
574
* - UNQDIR_RTC : Use a datetimestamp (requires RTC)
575
* - UNQDIR_BOTH : Use both (requires RTC)
576
*
577
* Autoselect: If RTC is enabled, it will be `UNQDIR_RTC`, otherwise
578
* it will be `UNQDIR_INCREMENT`.
579
*/
580
581
#define OPTION_UNIQUE_DIRECTORY_METHOD UNQDIR_AUTO
582
583
/****/
584
585
/* [ Pin Control -------------------------------------------------- ]
586
* Enable the new experimental PinControl method of reading/writing
587
* to carts.
588
*
589
* This only affects systems which have been ported to use it.
590
*
591
* Note: If successful, then eventually this won't be optional. So
592
* if this config option disappears just know that's why. Also,
593
* some systems may now or eventually use PinControl even if this
594
* option is not specifically enabled.
595
*/
596
597
//#define ENABLE_PINCONTROL
598
599
/****/
600
601
/* [ CRDB Debugging ----------------------------------------------- ]
602
* Enable debugging the CRDB format. This will output additional
603
* information via %Serial.
604
*/
605
606
//#define ENABLE_CRDB_DEBUG
607
608
/****/
609
610
/* [ LCD: Background Color ---------------------------------------- ]
611
* Set the backlight color of the LCD if you have one.
612
*
613
* Can be set using config:
614
* lcd.confColor=1
615
* lcd.red=0
616
* lcd.green=0
617
* lcd.blue=0
618
*/
619
620
#define OPTION_LCD_BG_RED 100
621
#define OPTION_LCD_BG_GREEN 0
622
#define OPTION_LCD_BG_BLUE 100
623
624
/****/
625
626
/* [ LCD: Notification Color -------------------------------------- ]
627
* Set the color used for notifications
628
*
629
* Can be set using config:
630
* lcd.confNotifColor=1
631
* lcd.notifRed=0
632
* lcd.notifGreen=0
633
* lcd.notifBlue=0
634
*/
635
636
#define OPTION_LCD_NOTIF_RED 100
637
#define OPTION_LCD_NOTIF_GREEN 100
638
#define OPTION_LCD_NOTIF_BLUE 0
639
640
/****/
641
642
/* [ LCD: Error Color --------------------------------------------- ]
643
* Set the color used for notifications
644
*
645
* Can be set using config:
646
* lcd.confErrorColor=1
647
* lcd.errorRed=0
648
* lcd.errorGreen=0
649
* lcd.errorBlue=0
650
*/
651
652
#define OPTION_LCD_ERROR_RED 100
653
#define OPTION_LCD_ERROR_GREEN 0
654
#define OPTION_LCD_ERROR_BLUE 0
655
656
/****/
657
658
/* [ LCD: RGB Behavior -------------------------------------------- ]
659
* Decide the behavior of the color of the LCD's rotary knob.
660
*
661
* Options:
662
* 0: Original behavior [default]
663
* 1: Use notif/error colors, otherwise BG color.
664
* 2: Always BG color
665
*/
666
667
#define OPTION_LCD_RGB 1
668
669
/****/
670
671
/* [ LCD: Model --------------------------------------------------- ]
672
* Choose the type of LCD you have.
673
*
674
* Options:
675
* LCD_MKS: MKS MINI 12864 [default]
676
* LCD_BTT: BTT MINI 12864
677
* LCD_SSRETRO: StarshadeRETRO OSCR 12864
678
*/
679
680
#define OPTION_LCD_TYPE LCD_MKS
681
682
/****/
683
684
/* [ LCD: NeoPixel Order ------------------------------------------ ]
685
* The order of the colors for the LCD module.
686
*
687
* Options:
688
* NPXL_AUTO : Autoselect based on LCD type
689
* NPXL_NORMAL : Original order
690
* NPXL_REVERSE : Reverse order
691
*/
692
693
//#define OPTION_NEOPIXEL_ORDER NPXL_AUTO
694
695
/****/
696
697
/* [ Voltage Monitoring ------------------------------------------- ]
698
* Which method should be used to monitor voltage?
699
*
700
* Options:
701
* 0: Don't monitor voltages [default]
702
* 1: Use voltage monitor IC on VCC
703
* 2: Use VSELECT STAT pin (requires VSELECT)
704
* 3: Use both
705
*
706
* Note: Requires on-board ATmega2560
707
*/
708
709
//#define OPTION_VOLTAGE_MONITOR_METHOD 2
710
711
/****/
712
713
/* [ 3.3V Stability Fix (3V3FIX) ---------------------------------- ]
714
* Enable this if you are having stability issues when using 3.3V,
715
* works best with VSELECT.
716
*
717
* If not using VSELECT, always turn the cart reader on with the
718
* voltage switch set to 5V and switch to 5V before selecting a
719
* cartridge from the menu.
720
*/
721
722
//#define ENABLE_3V3FIX
723
724
/****/
725
726
/* [ Updater ------------------------------------------------------ ]
727
* Disable this if you don't plan to/want to use the firmware
728
* updater utility. This setting is ignored on hardware versions
729
* other than HW5 and HW3.
730
*/
731
732
#define ENABLE_UPDATER
733
734
/****/
735
736
/* [ Self Test ---------------------------------------------------- ]
737
* Tests for shorts and other issues in your OSCR build.
738
*/
739
740
//#define ENABLE_SELFTEST
741
742
/****/
743
744
/* [ Logging ------------------------------------------------------ ]
745
* Write all info to OSCR_LOG.txt in root dir
746
*
747
* Can be toggled off using config:
748
* oscr.logging=0
749
*/
750
751
//#define ENABLE_GLOBAL_LOG
752
753
/****/
754
755
/* [ RTC: IC Type ------------------------------------------------- ]
756
* When the RTC module is installed, choose the type here. This
757
* setting is ignored if the RTC option is not enabled.
758
*
759
* Options:
760
* RTCOPT_DS3231: Using the DS3231
761
* RTCOPT_DS1307: Using the DS1307
762
*/
763
764
#define RTC_TYPE RTCOPT_DS3231
765
766
/****/
767
768
/* [ SNES Core/CLOCKGEN: Read Clock Generator Calibration Data ---- ]
769
* Toggle clock calibration menu and/or whether or not to use the
770
* calibration data from snes_clk.txt.
771
*/
772
773
//#define OPTION_CLOCKGEN_CALIBRATION
774
//#define OPTION_CLOCKGEN_USE_CALIBRATION
775
776
/****/
777
778
/* [ MegaDrive/Genesis Core: Compatibility Settings --------------- ]
779
* Configure how the MD core saves are formatted.
780
*
781
* Can be set using config (if enabled):
782
* md.saveType=0
783
*
784
* If config is enabled, this option does nothing -- use the config.
785
*
786
* Options:
787
* 0: Output each byte once. Not supported by emulators. [default]
788
* 1: Duplicate each byte. Usable by Kega Fusion.
789
* 2: Same as 1 + pad with 0xFF so that the file size is 64KB.
790
*/
791
792
//#define OPTION_MD_DEFAULT_SAVE_TYPE 0
793
794
/****/
795
796
/* [ SMS/Game Gear Core: Adapter Types ---------------------------- ]
797
* Change which adapters are shown on the menu as well as adjust
798
* the names of the menu options to match. If not set, all adapters
799
* will be shown with their original names.
800
*
801
* When choosing an option that displays only one adapter, the name
802
* of the system (SMS/GG/etc) will be used instead of the adapter's
803
* type/name.
804
*/
805
806
// == SMS Adapters
807
// - 0 Show all SMS adapters [default]
808
// - 1 Raphnet
809
// - 2 Retrode
810
// - 3 Retron3in1
811
//#define OPTION_SMS_ADAPTER SMSOPT_SMS_ADAPTER_ALL
812
813
// == GG Adapters
814
// - 0 Show all GG adapters [default]
815
// - 1 Retrode
816
// - 2 Retron3in1
817
//#define OPTION_GG_ADAPTER SMSOPT_GG_ADAPTER_ALL
818
819
// == SG-1000 Adapters
820
// - 0 Show all SG-1000 adapters [default]
821
// - 1 Raphnet
822
//#define OPTION_SG1000_ADAPTER SMSOPT_SG1000_ADAPTER_ALL
823
824
/****/
825
826
/* [ UI: File Browser --------------------------------------------- ]
827
* Settings for the new file browser.
828
*/
829
830
// Max filename length to display when browsing files.
831
#define UI_FILE_BROWSER_FILENAME_MAX 20
832
833
// Maximum number of files/folders in a directory
834
#define UI_FILE_BROWSER_FILES_MAX 50
835
836
// Maximum length of a filename to consider when sorting
837
//
838
// Note: Cannot be higher than UI_FILE_BROWSER_FILENAME_MAX
839
//
840
#define UI_FILE_BROWSER_FILE_SORT_LEN 10
// 0 to disable
841
842
// Maximum directory depth
843
#define PATH_MAX_DEPTH 5
844
845
/****/
846
847
/* [ Filebrowser: Sort direction ---------------------------------- ]
848
* Enable to sort files/folders from newest to oldest
849
*/
850
851
//#define OPTION_REVERSE_SORT
852
853
/****/
854
855
//
856
//
857
// !!!!! END OF USER-CONFIGURABLE SETTINGS !!!!!
858
//
859
//
860
861
#define UPD_BAUD 5600
862
863
#if (HW_VERSION == 5)
864
865
# if !defined(HARDWARE_OUTPUT_TYPE)
866
# define HARDWARE_OUTPUT_TYPE OUTPUT_OS12864
867
# endif
/* HARDWARE_OUTPUT_TYPE */
868
869
# if !defined(HARDWARE_INPUT_TYPE)
870
# define HARDWARE_INPUT_TYPE INPUT_ROTARY
871
# endif
/* HARDWARE_INPUT_TYPE */
872
873
# if !defined(OPTION_SMS_ADAPTER)
874
# define OPTION_SMS_ADAPTER SMSOPT_SMS_ADAPTER_HW5
875
# endif
876
877
# if !defined(OPTION_GG_ADAPTER)
878
# define OPTION_GG_ADAPTER SMSOPT_GG_ADAPTER_HW5
879
# endif
880
881
#elif (HW_VERSION == 4)
882
883
# if !defined(HARDWARE_OUTPUT_TYPE)
884
# define HARDWARE_OUTPUT_TYPE OUTPUT_OS12864
885
# endif
/* HARDWARE_OUTPUT_TYPE */
886
887
# if !defined(HARDWARE_INPUT_TYPE)
888
# define HARDWARE_INPUT_TYPE INPUT_ROTARY
889
# endif
/* HARDWARE_INPUT_TYPE */
890
891
#elif (HW_VERSION == 3)
892
893
# if !defined(HARDWARE_OUTPUT_TYPE)
894
# define HARDWARE_OUTPUT_TYPE OUTPUT_SSD1306
895
# endif
/* HARDWARE_OUTPUT_TYPE */
896
897
# if !defined(HARDWARE_INPUT_TYPE)
898
# define HARDWARE_INPUT_TYPE INPUT_2BUTTON
899
# endif
/* HARDWARE_INPUT_TYPE */
900
901
#elif (HW_VERSION == 2)
902
903
# if !defined(HARDWARE_OUTPUT_TYPE)
904
# define HARDWARE_OUTPUT_TYPE OUTPUT_SSD1306
905
# endif
/* HARDWARE_OUTPUT_TYPE */
906
907
# if !defined(HARDWARE_INPUT_TYPE)
908
# define HARDWARE_INPUT_TYPE INPUT_2BUTTON
909
# endif
/* HARDWARE_INPUT_TYPE */
910
911
#elif (HW_VERSION == 1)
912
913
# if !defined(HARDWARE_OUTPUT_TYPE)
914
# define HARDWARE_OUTPUT_TYPE OUTPUT_SSD1306
915
# endif
/* HARDWARE_OUTPUT_TYPE */
916
917
# if !defined(HARDWARE_INPUT_TYPE)
918
# define HARDWARE_INPUT_TYPE INPUT_1BUTTON
919
# endif
/* HARDWARE_INPUT_TYPE */
920
921
#endif
/* HW_VERSION */
922
923
# if !defined(ENABLE_NEOPIXEL) && !defined(DISABLE_NEOPIXEL) && (HARDWARE_OUTPUT_TYPE == OUTPUT_OS12864)
924
# define ENABLE_NEOPIXEL
925
# endif
/* ENABLE_NEOPIXEL && !DISABLE_NEOPIXEL && (=OUTPUT_OS12864) */
926
927
# if !defined(OPTION_SERIAL_OUTPUT)
928
# define OPTION_SERIAL_OUTPUT SERIAL_ASCII
929
# endif
930
931
/*******************************************************************/
932
/*******************************************************************/
933
/*******************************************************************/
934
/*******************************************************************/
935
/*******************************************************************/
936
937
#endif
/* CONFIG_H_ */
ArduinoConfig.h
Generated by
1.14.0