Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion Boards/arduino_mega.board.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"MaxServos": 10,
"MaxShifters": 4,
"MaxSteppers": 10,
"MaxInputMultiplexer": 4
"MaxInputMultiplexer": 4,
"MaxCustomDevices" : 5
},
"Pins": [
{
Expand Down
10 changes: 9 additions & 1 deletion Boards/mfboard.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
"FirmwareExtension",
"FriendlyName",
"LatestFirmwareVersion",
"MobiFlightType"
"MobiFlightType",
"CustomDeviceType"
],
"properties": {
"CanInstallFirmware": {
Expand Down Expand Up @@ -208,6 +209,13 @@
"description": "The type of the board as provided by the MobiFlight firmware.",
"type": "string"
},
"CustomDeviceType": {
"$id": "#root/Info/CustomDeviceType",
"title": "CustomDeviceType",
"description": "A an array of supported custom device types by this board.",
"type": "array",
"default": []
},
"ResetFirmwareFile": {
"$id": "#root/Info/ResetFirmwareFile",
"title": "Resetfirmwarefile",
Expand Down
39 changes: 39 additions & 0 deletions Devices/fictional-i2c.device.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "./mfdevice.schema.json",
"Info": {
"Label": "Custom I2C",
"Type": "MF_TEST_I2C",
"Author": "Sebastian",
"URL": "https://github.com",
"Version": "1.0.0"
},
"Config": {
"Pins": [

],
"I2C": {
"Enabled": true,
"Addresses": [
"0x27",
"0x28",
"0x29"
]
},
"Custom": {
"Enabled": true,
"Value": "dummy"
}
},
"MessageTypes": [
{
"id": 0,
"label": "Set Backlight",
"description": "0 => Off, 1 => On"
},
{
"id": 1,
"label": "Display Value",
"description": "$ will be displayed on the device"
}
]
}
36 changes: 36 additions & 0 deletions Devices/fictional.device.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "./mfdevice.schema.json",
"Info": {
"Label": "Fictional device",
"Type": "MF_TEST",
"Author": "Sebastian",
"URL": "https://github.com",
"Version": "1.0.0"
},
"Config": {
"Pins": [
"Awesome Data Pin",
"Cool Control Pin",
"Usless Pin",
"Nonsense Pin",
"Another Pin",
"And one more",
"Crazy Pin",
"King Pin",
"Pin Pin Pin",
"10th Pin"
]
},
"MessageTypes": [
{
"id": 0,
"label": "Set Backlight",
"description": "0 => Off, 1 => On"
},
{
"id": 1,
"label": "Display Value",
"description": "$ will be displayed on the device"
}
]
}
46 changes: 46 additions & 0 deletions Devices/gnc255.device.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "./mfdevice.schema.json",
"Info": {
"Label": "Garmin GNC 255",
"Type": "GNC255",
"Author": "Sebastian",
"URL": "https://github.com/MobiFlight/MobiFlight-CustomDevices/tree/main/Mobiflight/GNC255",
"Version": "1.0.0"
},
"Config": {
"Pins": [
"CLK",
"Data",
"CS",
"D/C",
"Reset"
]
},
"MessageTypes": [
{
"id": 1,
"label": "Set Active Frequency",
"description": "$ will be displayed on the device as Active Frequency"
},
{
"id": 2,
"label": "Set Standby Frequency",
"description": "$ will be displayed on the device as Standby Frequency"
},
{
"id": 3,
"label": "Set Active Label",
"description": "$ will be displayed on the device below Active Frequency, e.g. active station ICAO code"
},
{
"id": 4,
"label": "Set Standby Label",
"description": "$ will be displayed on the device below Standby Frequency, e.g. standby station ICAO code"
},
{
"id": 5,
"label": "Set Mode",
"description": "0 -> COM Mode, 1 -> NAV Mode"
}
]
}
35 changes: 35 additions & 0 deletions Devices/kav_efis.device.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "./mfdevice.schema.json",
"Info": {
"Label": "Kav's EFIS LCD",
"Type": "KAV_LCD_EFIS",
"Author": "Jak Kav",
"URL": "https://github.com/MobiFlight/MobiFlight-CustomDevices/tree/main/KAV_Simulation/EFIS_FCU",
"Version": "1.0.0"
},
"Config": {
"Pins": [
"Data",
"CS",
"CLK"
]
},
"MessageTypes": [
{
"id": 0,
"label": "Show QNH Value",
"description": "$ will be displayed as QNH value"
},
{
"id": 1,
"label": "Show QFE Value",
"description": "$ will be displayed as QFE value"
},
{
"id": 2,
"label": "Show STD",
"description": "0 = True, 1 = False"
}
]
}

104 changes: 104 additions & 0 deletions Devices/kav_fcu.device.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"$schema": "./mfdevice.schema.json",
"Info": {
"Label": "Kav's FCU LCD",
"Type": "KAV_LCD_FCU",
"Author": "Jak Kav",
"URL": "https://github.com/MobiFlight/MobiFlight-CustomDevices/tree/main/KAV_Simulation/EFIS_FCU",
"Version": "1.0.0"
},
"Config": {
"Pins": [
"Data",
"CS",
"CLK"
]
},
"MessageTypes": [
{
"id": 0,
"label": "Show Speed Value",
"description": "$ will be displayed as Speed value"
},
{
"id": 1,
"label": "Show Mach Value",
"description": "$ will be displayed as Mach value"
},
{
"id": 2,
"label": "Show Heading Value",
"description": "$ will be displayed as Heading value"
},
{
"id": 3,
"label": "Show Altitude",
"description": "$ will be displayed as Altitude"
},
{
"id": 4,
"label": "Show Vertical",
"description": "$ will be displayed as Vertical"
},
{
"id": 5,
"label": "Show FPA",
"description": "$ will be displayed as FPA"
},
{
"id": 6,
"label": "Show speed dashes",
"description": "1 = speed dashes will be shown"
},
{
"id": 7,
"label": "Show heading dashes",
"description": "1 = heading dashes will be shown"
},
{
"id": 8,
"label": "Show altitude dashes",
"description": "1 = altitude dashes will be shown"
},
{
"id": 9,
"label": "Show vertical speed dashes",
"description": "1 = vertical speed dashes will be shown"
},
{
"id": 10,
"label": "Show speed dot",
"description": "1 = speed dot will be shown, 0 = not shown"
},
{
"id": 11,
"label": "Show heading dot",
"description": "1 = heading dot will be shown, 0 = not shown"
},
{
"id": 12,
"label": "Show altitude dot",
"description": "1 = altitude dot will be shown, 0 = not shown"
},
{
"id": 13,
"label": "Toggle Trk/Hdg Mode",
"description": "0 = set heading mode, 1 = set Track Mode"
},
{
"id": 14,
"label": "Set Speed Label",
"description": "1 = set speed label, 0 = clear speed label"
},
{
"id": 15,
"label": "Set Mach Label",
"description": "1 = set mach label, 0 = clear mach label"
},
{
"id": 16,
"label": "Set Speed only",
"description": "$ will be displayed as Speed"
}
]
}
Loading