Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of fixed device numbers #253

Merged
merged 34 commits into from
Nov 4, 2023
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
03c36c8
dynamical button numbers
elral Aug 19, 2023
45edfaf
set up array function
elral Aug 19, 2023
ce9d55c
better comments
elral Aug 19, 2023
701dcc1
all devices with dymically defined array
elral Aug 20, 2023
088167d
changes for MUX
elral Aug 20, 2023
c080f58
missing defines added
elral Aug 21, 2023
34e83fc
missing return statement
elral Aug 21, 2023
1762966
back to original device memory space
elral Aug 21, 2023
03ec932
debug print out added
elral Aug 21, 2023
97ed2d6
extended information of memory usage to serial, deactivated
elral Aug 21, 2023
838888e
clean up, delete max. number of devices from board file
elral Aug 21, 2023
f77ebe8
get servos to run
elral Aug 21, 2023
dcbb30a
add comment for array size
elral Aug 23, 2023
cb038b2
get array size via an array
elral Aug 23, 2023
f2b0955
error handling added
elral Aug 23, 2023
666fec8
better definition of array size
elral Aug 23, 2023
ea09be0
intended size for nameBuffer[]
elral Sep 6, 2023
e3fe451
increased deviceBuffer for AVR's, decreased for Pico
elral Sep 6, 2023
6230b32
Merge branch 'main' into no_fixed_device_numbers
elral Sep 8, 2023
8584aaa
Merge branch 'MobiFlight:main' into no_fixed_device_numbers
elral Oct 11, 2023
517385b
max. numbers of devices not required anymore
elral Oct 13, 2023
63f9c36
one common function for sending failure message
elral Oct 15, 2023
8dd5291
failure message directly from flash
elral Oct 15, 2023
096be82
better naming
elral Oct 15, 2023
27abcd9
delete not required parameter in handler functions
elral Oct 15, 2023
0db4409
Revert "delete not required parameter in handler functions"
elral Oct 17, 2023
50a7526
Merge branch 'main' into no_fixed_device_numbers
elral Oct 21, 2023
018b451
merge branch main
elral Oct 21, 2023
4e8eba1
delete not required folder
elral Oct 23, 2023
8cb5d3b
Merge branch 'main' into no_fixed_device_numbers
elral Oct 23, 2023
d2a42d5
Merge branch 'main' into no_fixed_device_numbers
elral Oct 23, 2023
daac96f
merge branch main
elral Oct 23, 2023
64403aa
also custom devices w/o device limit
elral Oct 25, 2023
910f7b2
setup array for custom device was missing
elral Oct 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions _Boards/Atmel/Board_Mega/MFBoards.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@
#define MF_DIGIN_MUX_SUPPORT 1
#endif

#define MAX_OUTPUTS 40
#define MAX_BUTTONS 68
#define MAX_LEDSEGMENTS 4
#define MAX_ENCODERS 20
#define MAX_STEPPERS 10
#define MAX_MFSERVOS 10
#define MAX_MFLCD_I2C 2
#define MAX_ANALOG_INPUTS 16
#define MAX_OUTPUT_SHIFTERS 4
#define MAX_INPUT_SHIFTERS 4
#define MAX_DIGIN_MUX 4

#define MOBIFLIGHT_TYPE "MobiFlight Mega"
#define MOBIFLIGHT_SERIAL "1234567890"
#define MOBIFLIGHT_NAME "MobiFlight Mega"
Expand All @@ -56,7 +44,6 @@
#define MEMLEN_NAMES_BUFFER 1000 // max. size for configBuffer, contains only names from inputs
#define MF_MAX_DEVICEMEM 1500 // max. memory size for devices


#endif

// MFBoards.h
17 changes: 0 additions & 17 deletions _Boards/Atmel/Board_Nano/MFBoards.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@
#define MF_DIGIN_MUX_SUPPORT 1
#endif

#define MAX_OUTPUTS 18
#define MAX_BUTTONS 18
#define MAX_LEDSEGMENTS 1
#define MAX_ENCODERS 9
#define MAX_STEPPERS 2
#define MAX_MFSERVOS 2
#define MAX_MFLCD_I2C 2
#define MAX_ANALOG_INPUTS 8
#define MAX_OUTPUT_SHIFTERS 2
#define MAX_INPUT_SHIFTERS 2
#define MAX_DIGIN_MUX 3

#define STEPS 64
#define STEPPER_SPEED 400 // 300 already worked, 467, too?
#define STEPPER_ACCEL 800

#define MOBIFLIGHT_TYPE "MobiFlight Nano"
#define MOBIFLIGHT_SERIAL "0987654321"
#define MOBIFLIGHT_NAME "MobiFlight Nano"
Expand All @@ -60,7 +44,6 @@
#define MEMLEN_NAMES_BUFFER 220 // max. size for configBuffer, contains only names from inputs
#define MF_MAX_DEVICEMEM 300 // max. memory size for devices


#endif

// MFBoards.h
13 changes: 0 additions & 13 deletions _Boards/Atmel/Board_ProMicro/MFBoards.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@
#define MF_DIGIN_MUX_SUPPORT 1
#endif

#define MAX_OUTPUTS 18
#define MAX_BUTTONS 18
#define MAX_LEDSEGMENTS 1
#define MAX_ENCODERS 9
#define MAX_STEPPERS 3
#define MAX_MFSERVOS 3
#define MAX_MFLCD_I2C 2
#define MAX_ANALOG_INPUTS 9
#define MAX_OUTPUT_SHIFTERS 2
#define MAX_INPUT_SHIFTERS 2
#define MAX_DIGIN_MUX 3

#define MOBIFLIGHT_TYPE "MobiFlight Micro"
#define MOBIFLIGHT_SERIAL "0987654321"
#define MOBIFLIGHT_NAME "MobiFlight Micro"
Expand All @@ -56,7 +44,6 @@
#define MEMLEN_NAMES_BUFFER 350 // max. size for configBuffer, contains only names from inputs
#define MF_MAX_DEVICEMEM 400 // max. memory size for devices


#endif

// MFBoards.h
13 changes: 0 additions & 13 deletions _Boards/Atmel/Board_Uno/MFBoards.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@
#define MF_DIGIN_MUX_SUPPORT 1
#endif

#define MAX_OUTPUTS 18
#define MAX_BUTTONS 18
#define MAX_LEDSEGMENTS 1
#define MAX_ENCODERS 9
#define MAX_STEPPERS 2
#define MAX_MFSERVOS 2
#define MAX_MFLCD_I2C 2
#define MAX_ANALOG_INPUTS 6
#define MAX_OUTPUT_SHIFTERS 2
#define MAX_INPUT_SHIFTERS 2
#define MAX_DIGIN_MUX 3

#define MOBIFLIGHT_TYPE "MobiFlight Uno"
#define MOBIFLIGHT_SERIAL "0987654321"
#define MOBIFLIGHT_NAME "MobiFlight Uno"
Expand All @@ -56,7 +44,6 @@
#define MEMLEN_NAMES_BUFFER 220 // max. size for configBuffer, contains only names from inputs
#define MF_MAX_DEVICEMEM 300 // max. memory size for devices


#endif

// MFBoards.h
16 changes: 0 additions & 16 deletions _Boards/RaspberryPi/Pico/MFBoards.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,6 @@
#define MF_DIGIN_MUX_SUPPORT 1
#endif

#define MAX_OUTPUTS 26
#define MAX_BUTTONS 26
#define MAX_LEDSEGMENTS 4
#define MAX_ENCODERS 8
#define MAX_STEPPERS 6
#define MAX_MFSERVOS 8
#define MAX_MFLCD_I2C 2
#define MAX_ANALOG_INPUTS 3
#define MAX_OUTPUT_SHIFTERS 4
#define MAX_INPUT_SHIFTERS 4
#define MAX_DIGIN_MUX 4

#define STEPS 64
#define STEPPER_SPEED 400 // 300 already worked, 467, too?
#define STEPPER_ACCEL 800

#define MOBIFLIGHT_TYPE "MobiFlight RaspiPico"
#define MOBIFLIGHT_SERIAL "0987654321"
#define MOBIFLIGHT_NAME "MobiFlight RaspiPico"
Expand Down
Loading