Compare commits

...

2 commits

Author SHA1 Message Date
tyeth
679848a9ff Mention GPS custom datatype/sensortype insertion points 2025-07-31 12:24:08 +01:00
tyeth
70cb0120a0 Update for web-native-usb (not just uf2) 2025-07-30 22:12:38 +01:00
2 changed files with 8 additions and 4 deletions

View file

@ -1,8 +1,8 @@
// Load Wippersnapper boards and components data
// Configuration - technically unused (instead ./ relative links) but useful for reference
const BOARDS_JSON_URL = 'https://raw.githubusercontent.com/adafruit/Adafruit_Wippersnapper_Offline_Configurator/refs/heads/use_boards_sd_card/wippersnapper_boards.json'; //'wippersnapper_boards.json';
const COMPONENTS_JSON_URL = 'https://raw.githubusercontent.com/adafruit/Adafruit_Wippersnapper_Offline_Configurator/refs/heads/use_boards_sd_card/wippersnapper_components.json'; //'wippersnapper_components.json';
const BOARDS_JSON_URL = 'https://raw.githubusercontent.com/adafruit/Adafruit_Wippersnapper_Offline_Configurator/refs/heads/main/wippersnapper_boards.json'; //'wippersnapper_boards.json';
const COMPONENTS_JSON_URL = 'https://raw.githubusercontent.com/adafruit/Adafruit_Wippersnapper_Offline_Configurator/refs/heads/main/wippersnapper_components.json'; //'wippersnapper_components.json';
// Global app state
const appState = {
@ -159,7 +159,7 @@ function populateBoardSelect() {
// Filter boards to only include those with UF2 install method
const filteredBoards = Object.entries(appState.boardsData)
.filter(([boardId, board]) => board.installMethod === 'uf2'); //['uf2', 'web-native-usb'].includes(board.installMethod)); //funhouse
.filter(([boardId, board]) => ['uf2', 'web-native-usb'].includes(board.installMethod)); //funhouse
// Sort boards by vendor and name
const sortedBoards = filteredBoards

View file

@ -249,7 +249,7 @@ document.addEventListener('DOMContentLoaded', function() {
if (boardImageElem) {
if (board.image) {
if (!board.image.startsWith('http')) {
boardImageElem.src = "https://raw.githubusercontent.com/adafruit/Wippersnapper_Boards/refs/heads/rp2040_datalogger_feather/" + board.image;
boardImageElem.src = "https://raw.githubusercontent.com/adafruit/Wippersnapper_Boards/refs/heads/offline-mode/" + board.image;
} else {
boardImageElem.src = board.image;
}
@ -1315,6 +1315,8 @@ function showComponentConfigModal(component, type) {
</select>
</div>
`;
// TODO: Tyeth/Brent - Add GPS properties here if needed, or below in datatypes
}
// Data type selection
@ -1760,6 +1762,8 @@ function updateSelectedComponentsList() {
} else if (component.componentAPI === 'uart') {
detailsText += `<br>TX Pin: ${component.txPin}, RX Pin: ${component.rxPin}`;
// TODO: Tyeth/Brent - Add GPS properties here if needed, or override sensorTypes
// Show sensor types
if (component.sensorTypes && component.sensorTypes.length > 0) {
detailsText += '<br>Data types: ';