Subversion Repositories svn.mios

Rev

Rev 365 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
73 tk 1
; $Id: setup_midio128.asm 1198 2015-09-13 19:19:34Z tk $
195 tk 2
    LIST R=DEC
73 tk 3
;
4
; Default Setup File for MIDIO128
5
;
6
; here you can change the default device ID
7
#define DEFAULT_DEVICE_ID   0x00
8
;
9
; if this option is enabled (1), the DEFAULT_DEVICE_ID won't be used, but
10
; it will be automatically derived from the MIOS Device ID instead
11
#define DEFAULT_AUTO_DEVICE_ID  1
12
;
13
; debounce counter (see the function description of MIOS_SRIO_DebounceSet)
14
; Use 0 for high-quality buttons, use higher values for low-quality buttons
15
#define DEFAULT_SRIO_DEBOUNCE_CTR 32
16
;
17
; Enable Alternative Program Change Behaviour
18
; If 0: on program change events, the appr. Output pin will
19
;       just toggle from logic 0 to logic 1 and vice versa
20
; If 1: on program change events, all output pins of the same
21
;       channel will be set to logic 0, but the pin which is assigned
22
;       to the channel and to the program change value will be set
23
;       to logic 1
24
#define DEFAULT_ALT_PROGCHNG    0
25
;
365 tk 26
; If 0: Note Off CC#123 will be ignored
27
; If 1..16: if CC#123 is received over the given channel (1..16), all 
28
; digital outputs will be set to passive state
29
#define DEFAULT_ALL_NOTES_OFF_CHANNEL   0
30
;
73 tk 31
; Forward Input to Output
32
; If 0: if an inputs gets an raising or falling edge, the appr. output
33
;       pin will be set to the same new logic level. The output pin
34
;       can be controlled via MIDI also
35
; If 1: an output pin can only controlled via MIDI
36
#define DEFAULT_FORWARD_IO  1
37
;
38
; If 0: Inputs are high active
39
; If 1: Inputs are low actvive (MIOS default)
40
#define DEFAULT_INVERSE_DIN 1
41
;
42
; Inverse Outputs
43
; If 0: Outputs are high active, reset value after poweron is "0" (MIOS default)
44
; If 1: Outputs are low active, reset value after poweron is "1"
45
#define DEFAULT_INVERSE_DOUT    0
46
;
47
; Default value of touch sensor sensitivity
48
#define DEFAULT_TS_SENSITIVITY  0x03
49
;
1198 tk 50
; Enable AIN option?
51
; Up to 64 pots can be connected to J5, unusued analog inputs have to be clamped to ground!
52
; The sent MIDI message is not configurable here, please customize in src/main.inc 
53
; (USER_AIN_NotifyChange function) instead
54
; By default, it will send CC#16, 17, 18, ... over channel #1
55
; The parameter also specifies the number of pots
56
;    0: AIN disabled
57
;    1: 1 pot directly connected to J5.A0, remaining inputs don't need to be clamped
58
;    2: 2 pots directly connected to J5.A0 and J5.A1, remaining inputs don't need to be clamped
59
;   ...
60
;    8: 8 pots directly connected to J5.A0..J5.A7
61
;    9: 9 pots, requires 4051 multiplexers (-> see MBHP_AIN page)
62
;   ...
63
;   64: 64 pots, requires 4051 multiplexers (-> see MBHP_AIN page)
64
#define DEFAULT_AIN_ENABLED     0
65
;
73 tk 66
; For MIDI activity monitor: define the DOUT pins for the Rx and Tx LED
67
#define DEFAULT_MIDI_MONITOR_ENABLED 0  ; if 1, the Tx/Rx LEDs are enabled
68
#define DEFAULT_MIDI_RX_LED 0x00    ; DOUT SR#1, pin D0
69
#define DEFAULT_MIDI_TX_LED 0x01    ; DOUT SR#1, pin D1
70
;
71
; with following settings it is possible to center the screen on 2x20 and 2x40 LCDs
72
; see also the functional description of MIOS_LCD_YAddressSet
73
                    ; recommented values:
74
                    ; 2x16 | 2x20 | 4x20 | Comments
75
                    ; -----+------+------+----------
76
#define DEFAULT_YOFFSET_LINE0   0x00    ; 0x00 | 0x02 | 0x42 | cursor pos: 0x00-0x0f
77
#define DEFAULT_YOFFSET_LINE1   0x40    ; 0x40 | 0x42 | 0x16 | cursor pos: 0x40-0x0f
78
#define DEFAULT_YOFFSET_LINE2   0x14    ; 0x14 | 0x16 | 0x02 | cursor pos: 0x80-0x8f (not used yet)
79
#define DEFAULT_YOFFSET_LINE3   0x54    ; 0x54 | 0x56 | 0x56 | cursor pos: 0xc0-0xcf (not used yet)
80
 
81
 
82
#include "src/main.inc"