Compare commits
2 commits
main
...
web-native
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
679848a9ff | ||
|
|
70cb0120a0 |
2 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: ';
|
||||
|
|
|
|||
Loading…
Reference in a new issue