import { pinIoCategory } from '../blocks/categories/pinIo.js';
import { pwmCategory } from '../blocks/categories/pwm.js';
import { adcCategory } from '../blocks/categories/adc.js';
import { timeCategory } from '../blocks/categories/time.js';
import { i2cCategory } from '../blocks/categories/i2c.js';
import { serialPrintCategory } from '../blocks/categories/serialPrint.js';
import { soundCategory } from '../blocks/categories/sound.js';

export const rp2040 = {
  id: 'rp2040',
  label: 'RP2040 (Pico)',
  firmware: {
    label: 'MicroPython (Raspberry Pi Pico)',
    url: 'https://micropython.org/resources/firmware/RPI_PICO.uf2',
    canFlashInBrowser: false,
    instructions: 'Hold BOOTSEL while plugging in, then drag the .uf2 file onto the RPI-RP2 drive.',
  },
  categories: [
    pinIoCategory,
    pwmCategory,
    adcCategory,
    timeCategory,
    i2cCategory,
    soundCategory(),
    serialPrintCategory,
  ],
};
