├── INA260_breakout ├── .mbed ├── INA260.lib ├── mbed.bld ├── mbed │ ├── .bld │ │ └── bldrc │ ├── TARGET_NUCLEO_F103RB │ │ ├── TOOLCHAIN_ARM_STD │ │ │ ├── mbed.ar │ │ │ ├── pinmap.o │ │ │ ├── sleep.o │ │ │ ├── can_api.o │ │ │ ├── gpio_api.o │ │ │ ├── i2c_api.o │ │ │ ├── lp_ticker.o │ │ │ ├── port_api.o │ │ │ ├── rtc_api.o │ │ │ ├── spi_api.o │ │ │ ├── trng_api.o │ │ │ ├── mbed_board.o │ │ │ ├── pwmout_api.o │ │ │ ├── serial_api.o │ │ │ ├── stm_spi_api.o │ │ │ ├── PeripheralPins.o │ │ │ ├── analogin_api.o │ │ │ ├── analogout_api.o │ │ │ ├── gpio_irq_api.o │ │ │ ├── hal_tick_16b.o │ │ │ ├── hal_tick_32b.o │ │ │ ├── mbed_overrides.o │ │ │ ├── mbed_retarget.o │ │ │ ├── mbed_sdk_boot.o │ │ │ ├── pwmout_device.o │ │ │ ├── serial_device.o │ │ │ ├── stm32f1xx_hal.o │ │ │ ├── system_clock.o │ │ │ ├── us_ticker_16b.o │ │ │ ├── us_ticker_32b.o │ │ │ ├── gpio_irq_device.o │ │ │ ├── stm32f1xx_hal_sd.o │ │ │ ├── stm32f1xx_ll_adc.o │ │ │ ├── stm32f1xx_ll_crc.o │ │ │ ├── stm32f1xx_ll_dac.o │ │ │ ├── stm32f1xx_ll_dma.o │ │ │ ├── stm32f1xx_ll_i2c.o │ │ │ ├── stm32f1xx_ll_pwr.o │ │ │ ├── stm32f1xx_ll_rcc.o │ │ │ ├── stm32f1xx_ll_rtc.o │ │ │ ├── stm32f1xx_ll_spi.o │ │ │ ├── stm32f1xx_ll_tim.o │ │ │ ├── stm32f1xx_ll_usb.o │ │ │ ├── system_stm32f1xx.o │ │ │ ├── startup_stm32f103xb.o │ │ │ ├── stm32f1xx_hal_adc.o │ │ │ ├── stm32f1xx_hal_can.o │ │ │ ├── stm32f1xx_hal_cec.o │ │ │ ├── stm32f1xx_hal_crc.o │ │ │ ├── stm32f1xx_hal_dac.o │ │ │ ├── stm32f1xx_hal_dma.o │ │ │ ├── stm32f1xx_hal_eth.o │ │ │ ├── stm32f1xx_hal_flash.o │ │ │ ├── stm32f1xx_hal_gpio.o │ │ │ ├── stm32f1xx_hal_hcd.o │ │ │ ├── stm32f1xx_hal_i2c.o │ │ │ ├── stm32f1xx_hal_i2s.o │ │ │ ├── stm32f1xx_hal_irda.o │ │ │ ├── stm32f1xx_hal_iwdg.o │ │ │ ├── stm32f1xx_hal_mmc.o │ │ │ ├── stm32f1xx_hal_nand.o │ │ │ ├── stm32f1xx_hal_nor.o │ │ │ ├── stm32f1xx_hal_pcd.o │ │ │ ├── stm32f1xx_hal_pwr.o │ │ │ ├── stm32f1xx_hal_rcc.o │ │ │ ├── stm32f1xx_hal_rtc.o │ │ │ ├── stm32f1xx_hal_spi.o │ │ │ ├── stm32f1xx_hal_sram.o │ │ │ ├── stm32f1xx_hal_tim.o │ │ │ ├── stm32f1xx_hal_uart.o │ │ │ ├── stm32f1xx_hal_usart.o │ │ │ ├── stm32f1xx_hal_wwdg.o │ │ │ ├── stm32f1xx_ll_exti.o │ │ │ ├── stm32f1xx_ll_fsmc.o │ │ │ ├── stm32f1xx_ll_gpio.o │ │ │ ├── stm32f1xx_ll_sdmmc.o │ │ │ ├── stm32f1xx_ll_usart.o │ │ │ ├── stm32f1xx_ll_utils.o │ │ │ ├── stm32f1xx_hal_adc_ex.o │ │ │ ├── stm32f1xx_hal_cortex.o │ │ │ ├── stm32f1xx_hal_dac_ex.o │ │ │ ├── stm32f1xx_hal_gpio_ex.o │ │ │ ├── stm32f1xx_hal_pccard.o │ │ │ ├── stm32f1xx_hal_pcd_ex.o │ │ │ ├── stm32f1xx_hal_rcc_ex.o │ │ │ ├── stm32f1xx_hal_rtc_ex.o │ │ │ ├── stm32f1xx_hal_spi_ex.o │ │ │ ├── stm32f1xx_hal_tim_ex.o │ │ │ ├── stm32f1xx_hal_flash_ex.o │ │ │ └── stm32f1xx_hal_smartcard.o │ │ ├── TARGET_STM │ │ │ ├── TARGET_STM32F1 │ │ │ │ ├── TARGET_NUCLEO_F103RB │ │ │ │ │ └── device │ │ │ │ │ │ ├── stm32f1xx.h │ │ │ │ │ │ └── stm32f103xb.h │ │ │ │ └── can_device.h │ │ │ └── nvic_addr.h │ │ └── mbed_lib.json │ ├── platform │ │ ├── sleep.h │ │ ├── critical.h │ │ ├── rtc_time.h │ │ ├── wait_api.h │ │ ├── semihost_api.h │ │ ├── toolchain.h │ │ ├── platform.h │ │ ├── PlatformMutex.h │ │ ├── FilePath.h │ │ ├── FileLike.h │ │ ├── mbed_preprocessor.h │ │ └── mbed_application.h │ ├── hal │ │ ├── buffer.h │ │ ├── dma_api.h │ │ ├── pinmap.h │ │ └── rtc_api.h │ └── drivers │ │ ├── LowPowerTimer.h │ │ ├── LowPowerTimeout.h │ │ ├── LowPowerTicker.h │ │ └── Timeout.h ├── GettingStarted.html ├── mbed_config.h └── main.cpp ├── .gitignore ├── RP2350_benchmark ├── .gitignore ├── idle │ ├── idle.c │ └── CMakeLists.txt ├── bitbang │ ├── bitbang.c │ └── CMakeLists.txt ├── CMakeLists.txt ├── memory_test │ └── CMakeLists.txt ├── benchmark_float │ └── CMakeLists.txt ├── benchmark_double │ └── CMakeLists.txt └── benchmark_integer │ └── CMakeLists.txt ├── BME280 ├── Python27 │ └── requirements.txt ├── Arduino │ └── libraries │ │ └── SSCI_BME280 │ │ ├── keywords.txt │ │ └── examples │ │ └── ESP8266_BME280_sample.ino └── README.md ├── 10373_STM32G4_Dev_Board ├── rtc │ └── build_opt.h ├── hse_enable │ ├── build_opt.h │ └── hse_enable.ino ├── sleep │ └── sleep.ino ├── blink │ └── blink.ino ├── dcdc_mode_chg │ └── dcdc_mode_chg.ino ├── digital_inout │ └── digital_inout.ino ├── analogs_read │ └── analogs_read.ino ├── dacout │ └── dacout.ino ├── pwm_servo │ └── pwm_servo.ino └── analog_internal │ └── analog_internal.ino ├── 9560_Picossci_NTSC ├── lib │ └── Picossci_NTSC │ │ ├── examples │ │ ├── HowToUse │ │ │ └── HowToUse.ino │ │ ├── UseLovyanGFX │ │ │ ├── UseLovyanGFX.ino │ │ │ └── main.cpp │ │ └── NoLibrarySample │ │ │ └── NoLibrarySample.ino │ │ ├── src │ │ └── Picossci_NTSC.h │ │ ├── library.properties │ │ ├── library.json │ │ └── LICENSE ├── platformio.ini └── README.md ├── 1796_RPi_EnvSensor ├── ATTiny │ ├── main.c │ ├── I2Cslave.h │ ├── USI_TWI_Slave.c │ ├── USI_TWI_Slave.h │ ├── readme.md │ └── I2Cslave.hex └── README.md ├── Conta ├── 2775_KXG03_module │ ├── KXG03.zip │ └── KXG03_module │ │ └── KXG03_module.ino ├── 3677_Conta_HAT │ └── 3677_3680.py ├── 2771_ML8511_module │ ├── ML8511A.zip │ └── ML8511_module │ │ └── ML8511_module.ino ├── 2772_BD1020HFV_module │ └── BD1020HFV.zip ├── 2773_BH1745NUC_module │ └── BH1745NUC.zip ├── 3678_Conta_pHAT │ └── 3678_3680_3682.py ├── 2770_RPR0521RS_module │ └── RPR-0521RS.zip ├── 2776_BM1383AGLV_module │ └── BM1383AGLV.zip ├── 2774_BD7411G_module │ └── BD7411G_module │ │ └── BD7411G_module.ino ├── 3361_BU52061NVX_module │ └── BU52061NVX_module │ │ └── BU52061NVX_module.ino ├── 3929_SPRESENSE_ESP02_Base │ └── SPRESENSE │ │ └── README.md └── 3587_PAC1710_module │ └── PAC1710_module │ └── PAC1710.hpp ├── 9796_Picossci_2_Conta_Base └── environment_monitoring_sample │ └── picossci_secrets.h ├── ESPr_Developer_32 ├── ESP32_I2C_MUX │ ├── board.jpg │ ├── connect.jpg │ ├── README.md │ └── ESP32_I2C_MUX.ino └── ESP32_SPI_MUX │ ├── board.jpg │ ├── connect.jpg │ ├── Readme.md │ └── ESP32_SPI_MUX.ino ├── GPS_shield_for_ESPr ├── TinyGPSPlus-0.95a.zip ├── espr_dev_ntp_server │ └── espr_dev_ntp_server.ino └── espr_dev_gnss_serial_pass │ └── espr_dev_gnss_serial_pass.ino ├── IntelRealSense └── rs-dlib-cv │ ├── rs-dlib-cv │ ├── stdafx.h │ ├── stdafx.cpp │ ├── targetver.h │ ├── rs-dlib-cv.cpp │ └── rs-dlib-cv.vcxproj.filters │ ├── realsense-project-demo1.png │ ├── Readme.md │ └── rs-dlib-cv.sln ├── PCA9622DR_breakout └── mbed │ └── Test_PCA9622DR │ ├── main.cpp │ └── PCA9622DR.h ├── PCA9624PW_breakout └── mbed │ ├── Test_PCA9624PW │ ├── main.cpp │ └── PCA9624PW.h │ └── Test_PCA9624PW_2 │ ├── main.cpp │ └── PCA9624PW.h ├── PCA9626B_Stickboard └── mbed │ └── Test_PCA9626B │ └── main.cpp.txt ├── PCA9629APW_breakout └── mbed │ └── Test_PCA9629APW │ └── main.cpp ├── PCA9955BTW_breakout └── mbed │ ├── Test_PCA9955BTW_2 │ └── main.cpp │ └── Test_PCA9955BTW │ └── main.cpp.txt ├── PCA9956BTW_breakout └── mbed │ └── Test_PCA9956BTW │ └── main.cpp ├── SC16IS750IPW_breakout └── mbed │ └── Test_SC16IS750 │ ├── main.cpp │ └── SC16IS750.h ├── 9373_ESPr32_conta_sample ├── ESPr32_SCD4x │ ├── ._espr32s3conta.h │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32_2x2_switch │ ├── ._espr32s3conta.h │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32_BM1422GMV │ ├── ._espr32s3conta.h │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32_DIO_check │ ├── ._espr32s3conta.h │ ├── espr32conta.h │ ├── espr32s3conta.h │ └── ESPr32_DIO_check.ino ├── ESPr32S3_SCD4x │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32_LED_BAR │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32_NCD9830 │ ├── espr32conta.h │ ├── espr32s3conta.h │ └── ESPr32_NCD9830.ino ├── ESPr32S3_2x2_switch │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32S3_BM1422GMV │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32S3_DIO_check │ ├── espr32conta.h │ ├── espr32s3conta.h │ └── ESPr32S3_DIO_check.ino ├── ESPr32S3_LED_BAR │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32S3_MR45V100A │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32S3_NCD9830 │ ├── espr32conta.h │ └── espr32s3conta.h ├── ESPr32S3_i2c_scanner │ ├── espr32conta.h │ ├── espr32s3conta.h │ └── ESPr32S3_i2c_scanner.ino ├── ESPr32_MR45V100A │ ├── espr32conta.h │ └── espr32s3conta.h └── ESPr32_i2c_scanner │ ├── espr32conta.h │ ├── espr32s3conta.h │ └── ESPr32_i2c_scanner.ino ├── 9206_Picossci_Relay ├── firmwear │ ├── MicroPython │ │ └── rp2-pico-20220618-v1.19.1.uf2 │ └── ArduinoIDE │ │ └── USB_Relay │ │ └── USB_Relay.ino.rpipico.uf2 └── README.md ├── 8967_Picossci_Matrix_LED ├── firmwear │ ├── MicroPython │ │ └── rp2-pico-20220618-v1.19.1.uf2 │ └── ArduinoIDE │ │ └── DriveLED │ │ └── DriveLED.ino.rpipico.uf2 └── README.md ├── 8296_Picossci_DC_Servo_motor_driver ├── firmwear │ ├── MicroPython │ │ └── rp2-pico-20220618-v1.19.1.uf2 │ └── ArduinoIDE │ │ └── MotorCommandHAT.ino.generic.uf2 └── README.md ├── 10031_Conta_Lever_and_Push_Switch_Module ├── simpleread │ └── simpleread.ino └── events │ └── events.ino ├── LSM9DS1for_ESP-WROOM └── README.md ├── 9662_ESPr_Developer_C6 ├── blink │ └── blink.ino ├── button │ └── button.ino └── i2c_scan │ └── i2c_scan.ino ├── 10030_Conta_Passive_Buzzer_Module ├── ticktack │ └── ticktack.ino └── ringtone │ └── ringtone.ino ├── 8902_AQM1602Y_Breakout └── README.md ├── GT20L16J1Y_breakout └── Arduino │ └── GT20L16J1Y_sample │ └── README.md ├── ESP-WROOM-02 └── ESPWiFi_SD_Logger │ ├── SDcard │ └── index.htm │ ├── WebServer.h │ ├── README.md │ ├── SDlogger.cpp │ ├── SDlogger.h │ └── BME280.h ├── 7255_Graphic_LCD_for_RPi_Pico └── README.md ├── ESPr_Developer └── Env_sensor_shield │ ├── Readme.md │ └── ESP_BME280_test │ └── ESP_BME280_test.ino ├── AQM1248A_breakout └── Arduino │ └── AQM1248A_lib │ ├── AQM1248A.h │ ├── README.md │ └── examples │ └── graphictest │ └── graphictest.ino ├── ESPr_Door_Sensor └── ESPr_Door_test │ └── ESPr_Door_test.ino ├── 5372_ESPr_Dev32_Grove ├── DIO_AIN │ └── DIO_AIN.ino └── README.md ├── 5775_ESPr_Dev_Grove ├── DIO_AIN │ └── DIO_AIN.ino └── README.md ├── 9546_ADS7142_I2C_12bit_140k_x2_ADC_Module └── Python │ ├── ads7142_read_ch0.py │ ├── ads7142_read_1second.py │ └── ads7142_simple_read.py ├── TSL2561_breakout └── Arduino │ └── actinometer │ └── README.md ├── 10208_INA181_Current_Sensor_Module └── measure_current │ └── measure_current.ino ├── ESPr-IR ├── ESPrIR_dumper │ └── README.md └── ESPrIR_sender │ └── README.md ├── 9826_MA735_Digital_Angle_Sensor_Module ├── ma735_simple_read │ └── ma735_simple_read.ino ├── ma735_simple_read_kalman │ └── ma735_simple_read_kalman.ino ├── ma735_encoder │ └── ma735_encoder.ino └── ma735_generic_sensor │ └── ma735_generic_sensor.ino ├── 10004_Conta_5x5_RGB_LED_Matrix_Module └── conta_5x5_matrix_simple │ └── conta_5x5_matrix_simple.ino ├── PCAL9555APW_breakout ├── mbed │ └── Test_PCAL9555APW │ │ └── PCAL9555APW.h └── Arduino │ └── PCAL9555APW_sample │ └── PCAL9555APW_sample.ino ├── PCA9632DP1_breakout └── mbed │ └── Test_PCA9632DP1 │ ├── PCA9632DP1.h │ └── main.cpp ├── 9599_ADS7028_SPI_12bit_1M_x8_ADC_Module ├── Python │ └── ads7028_simple_read.py └── Arduino │ ├── ads7028_sampling_max │ └── ads7028_sampling_max.ino │ ├── ads7028_simple_read │ └── ads7028_simple_read.ino │ └── ads7028_simple_read_8ch │ └── ads7028_simple_read_8ch.ino ├── LICENSE ├── Rapiro └── Rapiro_Genuino101_BLE │ └── README.md ├── PCF2129AT_breakout └── mbed │ └── Test_PCF2129AT │ └── PCF2129AT.h ├── 9877_DRV8311H_BLDC_Motor_Driver_Module └── README.md ├── TJA1040_CAN_Tranciver_board └── MBED │ ├── mbed.h │ └── main.cpp ├── M5Stack └── MLX9060_M5 │ └── colors.h └── 8512_PRi_motor_driver_simple └── 8512_motor.py /INA260_breakout/.mbed: -------------------------------------------------------------------------------- 1 | ROOT=. 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /RP2350_benchmark/.gitignore: -------------------------------------------------------------------------------- 1 | build* 2 | -------------------------------------------------------------------------------- /BME280/Python27/requirements.txt: -------------------------------------------------------------------------------- 1 | smbus2>=0.1.3 2 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/rtc/build_opt.h: -------------------------------------------------------------------------------- 1 | -DHSE_VALUE=16000000 -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/hse_enable/build_opt.h: -------------------------------------------------------------------------------- 1 | -DHSE_VALUE=16000000 -------------------------------------------------------------------------------- /INA260_breakout/INA260.lib: -------------------------------------------------------------------------------- 1 | https://os.mbed.com/users/Waynan/code/INA260/#a1b8d2c9420d 2 | -------------------------------------------------------------------------------- /INA260_breakout/mbed.bld: -------------------------------------------------------------------------------- 1 | http://mbed.org/users/mbed_official/code/mbed/builds/e7ca05fa8600 -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/examples/HowToUse/HowToUse.ino: -------------------------------------------------------------------------------- 1 | // please see main.cpp 2 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/.bld/bldrc: -------------------------------------------------------------------------------- 1 | http://mbed.org/users/mbed_official/code/mbed/builds/e7ca05fa8600 -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/examples/UseLovyanGFX/UseLovyanGFX.ino: -------------------------------------------------------------------------------- 1 | // please see main.cpp 2 | -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/examples/NoLibrarySample/NoLibrarySample.ino: -------------------------------------------------------------------------------- 1 | // please see main.cpp 2 | -------------------------------------------------------------------------------- /BME280/Arduino/libraries/SSCI_BME280/keywords.txt: -------------------------------------------------------------------------------- 1 | setMode KEYWORD1 2 | readTrim KEYWORD1 3 | readData KEYWORD1 4 | -------------------------------------------------------------------------------- /1796_RPi_EnvSensor/ATTiny/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/1796_RPi_EnvSensor/ATTiny/main.c -------------------------------------------------------------------------------- /Conta/2775_KXG03_module/KXG03.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/2775_KXG03_module/KXG03.zip -------------------------------------------------------------------------------- /Conta/3677_Conta_HAT/3677_3680.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/3677_Conta_HAT/3677_3680.py -------------------------------------------------------------------------------- /1796_RPi_EnvSensor/ATTiny/I2Cslave.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/1796_RPi_EnvSensor/ATTiny/I2Cslave.h -------------------------------------------------------------------------------- /Conta/2771_ML8511_module/ML8511A.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/2771_ML8511_module/ML8511A.zip -------------------------------------------------------------------------------- /1796_RPi_EnvSensor/ATTiny/USI_TWI_Slave.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/1796_RPi_EnvSensor/ATTiny/USI_TWI_Slave.c -------------------------------------------------------------------------------- /1796_RPi_EnvSensor/ATTiny/USI_TWI_Slave.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/1796_RPi_EnvSensor/ATTiny/USI_TWI_Slave.h -------------------------------------------------------------------------------- /9796_Picossci_2_Conta_Base/environment_monitoring_sample/picossci_secrets.h: -------------------------------------------------------------------------------- 1 | #define SECRET_SSID "YOUR_SSID" 2 | #define SECRET_PASS "YOUR_PASS" -------------------------------------------------------------------------------- /Conta/2772_BD1020HFV_module/BD1020HFV.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/2772_BD1020HFV_module/BD1020HFV.zip -------------------------------------------------------------------------------- /Conta/2773_BH1745NUC_module/BH1745NUC.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/2773_BH1745NUC_module/BH1745NUC.zip -------------------------------------------------------------------------------- /Conta/3678_Conta_pHAT/3678_3680_3682.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/3678_Conta_pHAT/3678_3680_3682.py -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_I2C_MUX/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/ESPr_Developer_32/ESP32_I2C_MUX/board.jpg -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_SPI_MUX/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/ESPr_Developer_32/ESP32_SPI_MUX/board.jpg -------------------------------------------------------------------------------- /GPS_shield_for_ESPr/TinyGPSPlus-0.95a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/GPS_shield_for_ESPr/TinyGPSPlus-0.95a.zip -------------------------------------------------------------------------------- /Conta/2770_RPR0521RS_module/RPR-0521RS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/2770_RPR0521RS_module/RPR-0521RS.zip -------------------------------------------------------------------------------- /Conta/2776_BM1383AGLV_module/BM1383AGLV.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/Conta/2776_BM1383AGLV_module/BM1383AGLV.zip -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_I2C_MUX/connect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/ESPr_Developer_32/ESP32_I2C_MUX/connect.jpg -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_SPI_MUX/connect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/ESPr_Developer_32/ESP32_SPI_MUX/connect.jpg -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/rs-dlib-cv/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/IntelRealSense/rs-dlib-cv/rs-dlib-cv/stdafx.h -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/rs-dlib-cv/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/IntelRealSense/rs-dlib-cv/rs-dlib-cv/stdafx.cpp -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/rs-dlib-cv/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/IntelRealSense/rs-dlib-cv/rs-dlib-cv/targetver.h -------------------------------------------------------------------------------- /PCA9622DR_breakout/mbed/Test_PCA9622DR/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9622DR_breakout/mbed/Test_PCA9622DR/main.cpp -------------------------------------------------------------------------------- /PCA9624PW_breakout/mbed/Test_PCA9624PW/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9624PW_breakout/mbed/Test_PCA9624PW/main.cpp -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/rs-dlib-cv/rs-dlib-cv.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/IntelRealSense/rs-dlib-cv/rs-dlib-cv/rs-dlib-cv.cpp -------------------------------------------------------------------------------- /PCA9624PW_breakout/mbed/Test_PCA9624PW_2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9624PW_breakout/mbed/Test_PCA9624PW_2/main.cpp -------------------------------------------------------------------------------- /PCA9626B_Stickboard/mbed/Test_PCA9626B/main.cpp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9626B_Stickboard/mbed/Test_PCA9626B/main.cpp.txt -------------------------------------------------------------------------------- /PCA9629APW_breakout/mbed/Test_PCA9629APW/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9629APW_breakout/mbed/Test_PCA9629APW/main.cpp -------------------------------------------------------------------------------- /PCA9955BTW_breakout/mbed/Test_PCA9955BTW_2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9955BTW_breakout/mbed/Test_PCA9955BTW_2/main.cpp -------------------------------------------------------------------------------- /PCA9956BTW_breakout/mbed/Test_PCA9956BTW/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9956BTW_breakout/mbed/Test_PCA9956BTW/main.cpp -------------------------------------------------------------------------------- /SC16IS750IPW_breakout/mbed/Test_SC16IS750/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/SC16IS750IPW_breakout/mbed/Test_SC16IS750/main.cpp -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/realsense-project-demo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/IntelRealSense/rs-dlib-cv/realsense-project-demo1.png -------------------------------------------------------------------------------- /PCA9955BTW_breakout/mbed/Test_PCA9955BTW/main.cpp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/PCA9955BTW_breakout/mbed/Test_PCA9955BTW/main.cpp.txt -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_SCD4x/._espr32s3conta.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/9373_ESPr32_conta_sample/ESPr32_SCD4x/._espr32s3conta.h -------------------------------------------------------------------------------- /RP2350_benchmark/idle/idle.c: -------------------------------------------------------------------------------- 1 | #include "pico/stdlib.h" 2 | 3 | int main() 4 | { 5 | while (true) 6 | { 7 | sleep_ms(10000); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/examples/UseLovyanGFX/main.cpp: -------------------------------------------------------------------------------- 1 | #include "collision_circles.h" 2 | // #include "rotate_zoom_sample.h" 3 | // #include "fonts.h" 4 | 5 | -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/src/Picossci_NTSC.h: -------------------------------------------------------------------------------- 1 | #ifndef PICOSSCI_NTSC_H_ 2 | #define PICOSSCI_NTSC_H_ 3 | 4 | #include "Picossci_NTSC.hpp" 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_2x2_switch/._espr32s3conta.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/9373_ESPr32_conta_sample/ESPr32_2x2_switch/._espr32s3conta.h -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_BM1422GMV/._espr32s3conta.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/9373_ESPr32_conta_sample/ESPr32_BM1422GMV/._espr32s3conta.h -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_DIO_check/._espr32s3conta.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/9373_ESPr32_conta_sample/ESPr32_DIO_check/._espr32s3conta.h -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed.ar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed.ar -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/pinmap.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/pinmap.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/sleep.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/sleep.o -------------------------------------------------------------------------------- /9206_Picossci_Relay/firmwear/MicroPython/rp2-pico-20220618-v1.19.1.uf2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/9206_Picossci_Relay/firmwear/MicroPython/rp2-pico-20220618-v1.19.1.uf2 -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/can_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/can_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/gpio_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/gpio_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/i2c_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/i2c_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/lp_ticker.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/lp_ticker.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/port_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/port_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/rtc_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/rtc_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/spi_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/spi_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/trng_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/trng_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_board.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_board.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/pwmout_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/pwmout_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/serial_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/serial_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm_spi_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm_spi_api.o -------------------------------------------------------------------------------- /8967_Picossci_Matrix_LED/firmwear/MicroPython/rp2-pico-20220618-v1.19.1.uf2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/8967_Picossci_Matrix_LED/firmwear/MicroPython/rp2-pico-20220618-v1.19.1.uf2 -------------------------------------------------------------------------------- /9206_Picossci_Relay/firmwear/ArduinoIDE/USB_Relay/USB_Relay.ino.rpipico.uf2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/9206_Picossci_Relay/firmwear/ArduinoIDE/USB_Relay/USB_Relay.ino.rpipico.uf2 -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/PeripheralPins.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/PeripheralPins.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/analogin_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/analogin_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/analogout_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/analogout_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/gpio_irq_api.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/gpio_irq_api.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/hal_tick_16b.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/hal_tick_16b.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/hal_tick_32b.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/hal_tick_32b.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_overrides.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_overrides.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_retarget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_retarget.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_sdk_boot.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/mbed_sdk_boot.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/pwmout_device.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/pwmout_device.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/serial_device.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/serial_device.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/system_clock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/system_clock.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/us_ticker_16b.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/us_ticker_16b.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/us_ticker_32b.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/us_ticker_32b.o -------------------------------------------------------------------------------- /8967_Picossci_Matrix_LED/firmwear/ArduinoIDE/DriveLED/DriveLED.ino.rpipico.uf2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/8967_Picossci_Matrix_LED/firmwear/ArduinoIDE/DriveLED/DriveLED.ino.rpipico.uf2 -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/gpio_irq_device.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/gpio_irq_device.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_sd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_sd.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_adc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_adc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_crc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_crc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_dac.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_dac.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_dma.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_dma.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_i2c.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_i2c.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_pwr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_pwr.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_rcc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_rcc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_rtc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_rtc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_spi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_spi.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_tim.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_tim.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_usb.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_usb.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/system_stm32f1xx.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/system_stm32f1xx.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/startup_stm32f103xb.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/startup_stm32f103xb.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_adc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_adc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_can.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_can.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_cec.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_cec.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_crc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_crc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_dac.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_dac.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_dma.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_dma.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_eth.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_eth.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_flash.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_flash.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_gpio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_gpio.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_hcd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_hcd.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_i2c.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_i2c.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_i2s.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_i2s.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_irda.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_irda.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_iwdg.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_iwdg.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_mmc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_mmc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_nand.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_nand.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_nor.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_nor.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pcd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pcd.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pwr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pwr.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rcc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rcc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rtc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rtc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_spi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_spi.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_sram.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_sram.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_tim.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_tim.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_uart.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_uart.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_usart.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_usart.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_wwdg.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_wwdg.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_exti.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_exti.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_fsmc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_fsmc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_gpio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_gpio.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_sdmmc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_sdmmc.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_usart.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_usart.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_utils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_ll_utils.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_adc_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_adc_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_cortex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_cortex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_dac_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_dac_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_gpio_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_gpio_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pccard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pccard.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pcd_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_pcd_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rcc_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rcc_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rtc_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_rtc_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_spi_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_spi_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_tim_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_tim_ex.o -------------------------------------------------------------------------------- /8296_Picossci_DC_Servo_motor_driver/firmwear/MicroPython/rp2-pico-20220618-v1.19.1.uf2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/8296_Picossci_DC_Servo_motor_driver/firmwear/MicroPython/rp2-pico-20220618-v1.19.1.uf2 -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_flash_ex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_flash_ex.o -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_smartcard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f1xx_hal_smartcard.o -------------------------------------------------------------------------------- /8296_Picossci_DC_Servo_motor_driver/firmwear/ArduinoIDE/MotorCommandHAT.ino.generic.uf2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/8296_Picossci_DC_Servo_motor_driver/firmwear/ArduinoIDE/MotorCommandHAT.ino.generic.uf2 -------------------------------------------------------------------------------- /10031_Conta_Lever_and_Push_Switch_Module/simpleread/simpleread.ino: -------------------------------------------------------------------------------- 1 | const int pinIn = A2; 2 | 3 | void setup() { 4 | Serial.begin(115200); 5 | } 6 | 7 | void loop() { 8 | Serial.println(analogRead(pinIn)); 9 | delay(50); 10 | } 11 | -------------------------------------------------------------------------------- /LSM9DS1for_ESP-WROOM/README.md: -------------------------------------------------------------------------------- 1 | LSM9DS1 for ESPr Developer by Switch Science 2 | ==== 3 | 4 | [ESPr® Developer用9軸慣性計測ユニットシールド](http://ssci.to/2807) 5 | 6 | Sparkfunの[LSM9DS1ライブラリ](https://github.com/sparkfun/SparkFun_LSM9DS1_Arduino_Library)をインストールしておいてください。 -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/sleep/sleep.ino: -------------------------------------------------------------------------------- 1 | /* STM32duino Low Powerライブラリをインストール */ 2 | #include "STM32LowPower.h" 3 | 4 | void setup() { 5 | LowPower.begin(); 6 | } 7 | 8 | void loop() { 9 | LowPower.deepSleep(5000); 10 | delay(5000); 11 | } 12 | -------------------------------------------------------------------------------- /9662_ESPr_Developer_C6/blink/blink.ino: -------------------------------------------------------------------------------- 1 | const int ledPin = 18; 2 | 3 | void setup() { 4 | pinMode(ledPin, OUTPUT); 5 | } 6 | 7 | void loop() { 8 | digitalWrite(ledPin, HIGH); 9 | delay(500); 10 | digitalWrite(ledPin, LOW); 11 | delay(500); 12 | } 13 | -------------------------------------------------------------------------------- /10030_Conta_Passive_Buzzer_Module/ticktack/ticktack.ino: -------------------------------------------------------------------------------- 1 | const int pinBzz = 18; 2 | 3 | void setup(void) 4 | { 5 | } 6 | 7 | void loop(void) 8 | { 9 | tone(pinBzz, 2252, 50); 10 | delay(1000); 11 | 12 | tone(pinBzz, 2000, 50); 13 | delay(1000); 14 | } 15 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/blink/blink.ino: -------------------------------------------------------------------------------- 1 | const int LEDPin = PC4; 2 | 3 | void setup() { 4 | pinMode(LEDPin, OUTPUT); 5 | } 6 | 7 | void loop() { 8 | digitalWrite(LEDPin, HIGH); 9 | delay(1000); 10 | digitalWrite(LEDPin, LOW); 11 | delay(1000); 12 | } 13 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/stm32f1xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/stm32f1xx.h -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/stm32f103xb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SWITCHSCIENCE/samplecodes/HEAD/INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/stm32f103xb.h -------------------------------------------------------------------------------- /8902_AQM1602Y_Breakout/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes (AQM1602Y_Breakout) 2 | 3 | Softwares for AQM1602Y_Breakout 4 | 5 | + Python -------------------------- AQM1602Y_Breakout の Raspberry Pi用サンプルプログラムの格納ディレクトリ 6 | + RPi_AQM1602Y_breakout.py --------- Raspberry Pi 4 用 サンプルプログラム(Python3) 7 | -------------------------------------------------------------------------------- /1796_RPi_EnvSensor/ATTiny/readme.md: -------------------------------------------------------------------------------- 1 | ATtiny85 の Fuses の値は 2 | 3 | - EXTENDED ---- 0xFF 4 | - HIGH -------- 0xDF 5 | - LOW --------- 0xE2 6 | 7 | です。 8 | 9 | ATtiny85 Fuses parameters are as follows: 10 | 11 | - EXTENDED ---- 0xFF 12 | - HIGH -------- 0xDF 13 | - LOW --------- 0xE2 14 | -------------------------------------------------------------------------------- /9662_ESPr_Developer_C6/button/button.ino: -------------------------------------------------------------------------------- 1 | const int ledPin = 18; 2 | const int btnPin = 9; 3 | 4 | void setup() { 5 | pinMode(ledPin, OUTPUT); 6 | pinMode(btnPin, INPUT_PULLUP); 7 | } 8 | 9 | void loop() { 10 | digitalWrite(ledPin, !digitalRead(btnPin)); 11 | delay(50); 12 | } -------------------------------------------------------------------------------- /RP2350_benchmark/bitbang/bitbang.c: -------------------------------------------------------------------------------- 1 | #include "pico/stdlib.h" 2 | 3 | const int GPIO_PIN = 0; 4 | 5 | int main() { 6 | gpio_init(GPIO_PIN); 7 | gpio_set_dir(GPIO_PIN, GPIO_OUT); 8 | do { 9 | gpio_put(GPIO_PIN, 1); 10 | gpio_put(GPIO_PIN, 0); 11 | } while(1); 12 | } 13 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/dcdc_mode_chg/dcdc_mode_chg.ino: -------------------------------------------------------------------------------- 1 | const int ModePin = PC10; 2 | 3 | void setup() { 4 | pinMode(ModePin, OUTPUT); 5 | } 6 | 7 | void loop() { 8 | // PWM mode 9 | digitalWrite(ModePin, HIGH); 10 | delay(5000); 11 | // PFM/PWM mode 12 | digitalWrite(ModePin, LOW); 13 | delay(5000); 14 | } 15 | -------------------------------------------------------------------------------- /GT20L16J1Y_breakout/Arduino/GT20L16J1Y_sample/README.md: -------------------------------------------------------------------------------- 1 | 日本語フォントROM GT20L16J1Yピッチ変換済みモジュール Arduino用サンプルスケッチ 2 | ==== 3 | ROMから任意のフォントデータを読みだす 4 | 5 | 使い方 6 | ---- 7 | 8 | + [スイッチサイエンスwikiを参照](http://trac.switch-science.com/wiki/KanjiROM) 9 | 10 | 関連情報 11 | ---- 12 | 13 | 1. [日本語フォントROM GT20L16J1Yピッチ変換済みモジュール](https://www.switch-science.com/catalog/2273/) 14 | -------------------------------------------------------------------------------- /ESP-WROOM-02/ESPWiFi_SD_Logger/SDcard/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ESP-WROOM-02 6 | 12 | 13 | 14 |

Hello ESP-WROOM-02!

15 | 16 | 17 | -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/library.properties: -------------------------------------------------------------------------------- 1 | name=Picossci_NTSC 2 | version=1.0.1 3 | author=SWITCHSCIENCE 4 | maintainer=SWITCHSCIENCE 5 | sentence=NTSC driver for Picossci NTSC 6 | paragraph=NTSC driver for Picossci NTSC 7 | category=Display 8 | url=https://github.com/SWITCHSCIENCE/samplecodes/tree/master/9560_Picossci_NTSC/ 9 | includes=Picossci_NTSC.h 10 | architectures=rp2040,mbed_rp2040 11 | -------------------------------------------------------------------------------- /RP2350_benchmark/idle/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(idle 2 | idle.c 3 | ) 4 | 5 | # pull in common dependencies 6 | target_link_libraries(idle pico_stdlib) 7 | 8 | if (PICO_CYW43_SUPPORTED) 9 | target_link_libraries(idle pico_cyw43_arch_none) 10 | endif() 11 | 12 | # create map/bin/hex file etc. 13 | pico_add_extra_outputs(idle) 14 | 15 | # add url via pico_set_program_url 16 | # example_auto_set_url(idle) 17 | -------------------------------------------------------------------------------- /RP2350_benchmark/bitbang/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(bitbang 2 | bitbang.c 3 | ) 4 | 5 | # pull in common dependencies 6 | target_link_libraries(bitbang pico_stdlib) 7 | 8 | if (PICO_CYW43_SUPPORTED) 9 | target_link_libraries(bitbang pico_cyw43_arch_none) 10 | endif() 11 | 12 | # create map/bin/hex file etc. 13 | pico_add_extra_outputs(bitbang) 14 | 15 | # add url via pico_set_program_url 16 | # example_auto_set_url(bitbang) 17 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/digital_inout/digital_inout.ino: -------------------------------------------------------------------------------- 1 | const int pinLED = PC4; // LED、LOWで点灯 2 | const int pinBtn = PB8; // BOOTボタン、押すとHIGH 3 | 4 | void setup() { 5 | pinMode(pinLED, OUTPUT); 6 | pinMode(pinBtn, INPUT); 7 | } 8 | 9 | void loop() { 10 | int rd = digitalRead(pinBtn); // ボタンを押すとHIGH 11 | if (rd == HIGH) { 12 | digitalWrite(pinLED, LOW); // LOWで点灯 13 | } else { 14 | digitalWrite(pinLED, HIGH); // HIGHで消灯 15 | } 16 | delay(100); 17 | } 18 | -------------------------------------------------------------------------------- /7255_Graphic_LCD_for_RPi_Pico/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes (Graphic_LCD_for_RPi_Pico) 2 | 3 | Softwares for "Graphic LCD for RPi Pico" 4 | 5 | + Arduino ------------------------------ サンプルプログラム(Arduino)の格納ディレクトリ 6 | + 7255_sample 7 | + 7255_sample.ino ----------------- グラッフィック液晶にサンプル画像を表示しながら、スイッチ入力に反応して LED が光る 8 | + MicroPython -------------------------- サンプルプログラム(MicroPython)の格納ディレクトリ 9 | + main.py -------------------------- グラッフィック液晶にサンプル画像を表示しながら、スイッチ入力に反応して LED が光る 10 | -------------------------------------------------------------------------------- /ESP-WROOM-02/ESPWiFi_SD_Logger/WebServer.h: -------------------------------------------------------------------------------- 1 | // return HTTP ok 2 | void returnOK(); 3 | // retunr HTTP fail 4 | void returnFail(String); 5 | 6 | // open sdcard 7 | bool loadFromSdCard(String); 8 | 9 | void handleFileUpload(); 10 | void handleDelete(); 11 | void handleCreate(); 12 | void handleNotFound(); 13 | void handleClient(); 14 | void printDirectory(); 15 | void deleteRecursive(String path); 16 | 17 | 18 | // Initialize 19 | void WifiServerinit(); 20 | 21 | void setSDStatus(bool); 22 | -------------------------------------------------------------------------------- /GPS_shield_for_ESPr/espr_dev_ntp_server/espr_dev_ntp_server.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | const char *ssid = "your-ssid"; 6 | const char *password = "your-password"; 7 | 8 | boolean wifi_connected = false; 9 | 10 | void setup() { 11 | Serial.begin(115200); 12 | delay(5000); 13 | initGNSS(); 14 | connectToWiFi(ssid, password); 15 | } 16 | 17 | void loop() { 18 | processGNSS(); 19 | if (wifi_connected) { 20 | processNTPRequest(); 21 | } 22 | delay(1); 23 | } 24 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_SCD4x/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_LED_BAR/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_NCD9830/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_SCD4x/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_2x2_switch/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_BM1422GMV/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_DIO_check/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_LED_BAR/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_MR45V100A/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_NCD9830/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_SCD4x/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_i2c_scanner/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_2x2_switch/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_BM1422GMV/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_DIO_check/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_LED_BAR/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_MR45V100A/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_NCD9830/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_SCD4x/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_i2c_scanner/espr32conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32conta_h_ 2 | #define espr32conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 25 8 | #define SCL 26 9 | 10 | // UART2 11 | #define RXD2 15 12 | #define TXD2 13 13 | 14 | // CONTA IO 15 | #define IO3 15 16 | #define IO2 13 17 | 18 | // VSPI 19 | #define MOSI 23 20 | #define MISO 19 21 | #define SCK 18 22 | #define SSA 22 23 | #define SSB 5 24 | 25 | // DIO 26 | #define DIO1 27 27 | #define DIO2 4 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_2x2_switch/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_BM1422GMV/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_DIO_check/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_LED_BAR/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_MR45V100A/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_NCD9830/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_2x2_switch/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_BM1422GMV/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_DIO_check/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_MR45V100A/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_i2c_scanner/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_i2c_scanner/espr32s3conta.h: -------------------------------------------------------------------------------- 1 | #ifndef espr32s3conta_h_ 2 | #define espr32s3conta_h_ 3 | 4 | //------------------------------------------ 5 | // I2C 6 | //------------------------------------------ 7 | #define SDA 17 8 | #define SCL 18 9 | 10 | // UART2 11 | #define RXD2 47 12 | #define TXD2 9 13 | 14 | // CONTA IO 15 | #define IO3 47 16 | #define IO2 9 17 | 18 | // VSPI 19 | #define MOSI 1 20 | #define MISO 40 21 | #define SCK 39 22 | #define SSA 2 23 | #define SSB 38 24 | 25 | // DIO 26 | #define DIO1 8 27 | #define DIO2 42 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /ESPr_Developer/Env_sensor_shield/Readme.md: -------------------------------------------------------------------------------- 1 | # Env sensor shield for ESPr Developer 2 | ## Hardware 3 | See https://www.switch-science.com/catalog/2703/ 4 | 5 | ### On board device 6 | - Bocsh Sensortec [BME280](https://www.bosch-sensortec.com/bst/products/all_products/bme280) 7 | - Photo transister 8 | 9 | ## Software 10 | 11 | ### [ESP_BME280_test](https://github.com/SWITCHSCIENCE/samplecodes/tree/master/ESPr_Developer/Env_sensor_shield/ESP_BME280_test) 12 | Read BME280 and luminosity. 13 | Require [SSCI_BME280](https://github.com/SWITCHSCIENCE/BME280/tree/master/Arduino/libraries/SSCI_BME280) library. 14 | -------------------------------------------------------------------------------- /AQM1248A_breakout/Arduino/AQM1248A_lib/AQM1248A.h: -------------------------------------------------------------------------------- 1 | #ifndef AQM1248A_H 2 | #define AQM1248A_H 3 | 4 | #include "Arduino.h" 5 | #include 6 | #include "Adafruit_GFX.h" 7 | 8 | class AQM1248A : public Adafruit_GFX 9 | { 10 | public: 11 | AQM1248A(int8_t cs, int8_t rs, int8_t pwr); 12 | void drawPixel(int16_t x, int16_t y, uint16_t color); 13 | void begin(); 14 | void showPic(); 15 | private: 16 | void lcdData(uint8_t data); 17 | void lcdCmd(uint8_t cmd); 18 | int8_t _CS,_PWR,_RS; 19 | void initLCD(); 20 | }; 21 | 22 | #endif AQM1248A_H 23 | -------------------------------------------------------------------------------- /ESPr_Door_Sensor/ESPr_Door_test/ESPr_Door_test.ino: -------------------------------------------------------------------------------- 1 | int LED = 4; 2 | int reed_sw = 5; 3 | 4 | void setup() { 5 | pinMode(LED,OUTPUT); 6 | delay(10); 7 | if(digitalRead(reed_sw) == 0){ 8 | digitalWrite(LED,HIGH); 9 | delay(100); 10 | digitalWrite(LED,LOW); 11 | } 12 | else{ 13 | for(int i = 0; i < 3; i++){ 14 | digitalWrite(LED,HIGH); 15 | delay(100); 16 | digitalWrite(LED,LOW); 17 | delay(100); 18 | } 19 | } 20 | ESP.deepSleep(0,WAKE_RF_DEFAULT); 21 | delay(1000); 22 | } 23 | 24 | void loop() { 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /9206_Picossci_Relay/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes 2 | 3 | Softwares for Picossci Relay 4 | 5 | + firmwear ------------------------- Picossci Relay の初期ファームウェアの格納ディレクトリ 6 | + ArduinoIDE ----------------------- Arduino言語版 7 | + USB_Relay 8 | + USB_Relay.ino --------------------- 初期ファームウェア (Arduino言語版) 9 | + USB_Relay.ino.rpipico.uf2 --------- ファームウェアバイナリー 10 | + MicroPython ---------------------- MicroPython言語版 11 | + rp2-pico-20220618-v1.19.1.uf2 --------- RP2040 MicroPython 12 | + USB_Relay.py -------------------------- 初期ファームウェア (MicroPython版) 13 | + Command.txt ---------------------- 初期ファームウェアの制御コマンドについて 14 | -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Picossci_NTSC", 3 | "description": "NTSC driver for Picossci NTSC", 4 | "keywords": "Picossci,NTSC,RP2040", 5 | "authors": { 6 | "name": "SWITCHSCIENCE", 7 | "url": "https://github.com/SWITCHSCIENCE", 8 | "maintainer": true 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/SWITCHSCIENCE/samplecodes/tree/master/9560_Picossci_NTSC/" 13 | }, 14 | "version": "1.0.1", 15 | "frameworks": ["arduino"], 16 | "platforms": ["rp2040"], 17 | "headers": "Picossci_NTSC.h", 18 | "build": { 19 | "libArchive": false 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /8967_Picossci_Matrix_LED/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes 2 | 3 | Softwares for Picossci Matrix LED 4 | 5 | + firmwear ------------------------- Picossci Matrix LED の初期ファームウェアの格納ディレクトリ 6 | + ArduinoIDE ----------------------- Arduino言語版 7 | + DriveLED 8 | + DriveLED.ino --------------------- 初期ファームウェア (Arduino言語版) 9 | + DriveLED.ino.rpipico.uf2 --------- ファームウェアバイナリー 10 | + MicroPython ---------------------- MicroPython言語版 11 | + DriveLED.py -------------------------- 初期ファームウェア (MicroPython版) 12 | + rp2-pico-20220618-v1.19.1.uf2 -------- RP2040 MicroPython 13 | + Command.txt ---------------------- 初期ファームウェアの制御コマンドについて 14 | -------------------------------------------------------------------------------- /AQM1248A_breakout/Arduino/AQM1248A_lib/README.md: -------------------------------------------------------------------------------- 1 | AQM1248A Simple Library 2 | ==== 3 | AQM1248A 小型グラフィック液晶をArduinoで扱うためのライブラリ 4 | 5 | 使い方 6 | ---- 7 | 8 | + [Adafruit GFX Library](https://github.com/adafruit/Adafruit-GFX-Library) の導入 9 | 10 | + `#include "AQM1248A.h"`をIDEの先頭に追加 11 | 12 | サンプル 13 | ---- 14 | 15 | + `examples/graphictest/graphictest.ino` 16 | 円、三角形、角丸四角形、sin波の表示 17 | 18 | 注意 19 | ---- 20 | 21 | + 本液晶は表示用RAMからデータを読み取れないため、プログラム内部に仮想的に表示画面を用意している 22 | 23 | + この仮想画面がおよそ800バイトを占める 24 | 25 | + 仮想画面を液晶に反映させるために、`showPic()`を呼ぶ必要がある 26 | 27 | 28 | 関連情報 29 | ---- 30 | 31 | 1. [AQM1248A小型グラフィック液晶ボード](https://www.switch-science.com/catalog/2608/) 32 | -------------------------------------------------------------------------------- /Conta/2771_ML8511_module/ML8511_module/ML8511_module.ino: -------------------------------------------------------------------------------- 1 | /* Arduino define */ 2 | #define ADCpin_AnalogUV 0 3 | #define _LED 13 4 | 5 | float uv, v; 6 | int data; 7 | 8 | void setup() { 9 | pinMode(_LED, OUTPUT); 10 | 11 | digitalWrite(_LED, LOW); 12 | Serial.begin(115200); 13 | } 14 | 15 | void loop() { 16 | digitalWrite(_LED, LOW); 17 | 18 | data = analogRead(ADCpin_AnalogUV); 19 | v = (float)data / 1023 * 5.0f; 20 | uv = (float)(data - 200) * 0.04367f; 21 | 22 | Serial.print(uv, 2); 23 | Serial.print(" "); 24 | Serial.print(v, 3); 25 | Serial.print(" 0x"); 26 | Serial.println(data, HEX); 27 | 28 | delay(100); 29 | } 30 | 31 | -------------------------------------------------------------------------------- /INA260_breakout/GettingStarted.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 10 | Page Redirection 11 | 12 | 13 | If you are not redirected automatically, please follow the 14 | link to the online exporter documentation 15 | 16 | 17 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_DIO_check/ESPr32_DIO_check.ino: -------------------------------------------------------------------------------- 1 | #include "espr32conta.h" 2 | 3 | //------------------------------------------ 4 | // Main logics 5 | //------------------------------------------ 6 | 7 | void setup() 8 | { 9 | Serial.begin(115200); 10 | 11 | // DIO PIN 12 | pinMode(DIO1, OUTPUT); 13 | pinMode(DIO2, OUTPUT); 14 | digitalWrite(DIO1, LOW); 15 | digitalWrite(DIO2, HIGH); 16 | } 17 | 18 | void loop() 19 | { 20 | //Serial.println("DIO1=LOW, DIO2=HIGH"); 21 | digitalWrite(DIO1, LOW); 22 | digitalWrite(DIO2, HIGH); 23 | delay(1); 24 | //Serial.println("DIO1=HIGH, DIO2=LOW"); 25 | digitalWrite(DIO1, HIGH); 26 | digitalWrite(DIO2, LOW); 27 | delay(1); 28 | } 29 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_DIO_check/ESPr32S3_DIO_check.ino: -------------------------------------------------------------------------------- 1 | #include "espr32s3conta.h" 2 | 3 | //------------------------------------------ 4 | // Main logics 5 | //------------------------------------------ 6 | 7 | void setup() 8 | { 9 | Serial.begin(115200); 10 | 11 | // DIO PIN 12 | pinMode(DIO1, OUTPUT); 13 | pinMode(DIO2, OUTPUT); 14 | digitalWrite(DIO1, LOW); 15 | digitalWrite(DIO2, HIGH); 16 | } 17 | 18 | void loop() 19 | { 20 | //Serial.println("DIO1=LOW, DIO2=HIGH"); 21 | digitalWrite(DIO1, LOW); 22 | digitalWrite(DIO2, HIGH); 23 | delay(1); 24 | //Serial.println("DIO1=HIGH, DIO2=LOW"); 25 | digitalWrite(DIO1, HIGH); 26 | digitalWrite(DIO2, LOW); 27 | delay(1); 28 | } 29 | -------------------------------------------------------------------------------- /5372_ESPr_Dev32_Grove/DIO_AIN/DIO_AIN.ino: -------------------------------------------------------------------------------- 1 | void setup() { 2 | pinMode(25, OUTPUT); // set LED(D0) as an OUTPUT device 3 | pinMode(26, INPUT); // set SW(D2) as an INPUT device 4 | pinMode(4, INPUT); // set Volume (A0) as an Analog INPUT device 5 | 6 | Serial.begin(115200); 7 | delay(1000); 8 | 9 | Serial.println(" "); 10 | Serial.println("Digital I/O, Analog Input Tset."); 11 | Serial.println(" "); 12 | delay(2000); 13 | } 14 | 15 | void loop() { 16 | if (digitalRead(26)) { 17 | digitalWrite(25, 1); 18 | Serial.print("1 : "); 19 | } else { 20 | digitalWrite(25, 0); 21 | Serial.print("0 : "); 22 | } 23 | Serial.println(analogRead(4)); 24 | delay(100); 25 | } 26 | 27 | 28 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/analogs_read/analogs_read.ino: -------------------------------------------------------------------------------- 1 | void setup() { 2 | // put your setup code here, to run once: 3 | Serial.begin(115200); 4 | analogWriteFrequency(500); 5 | analogWrite(PA8, 128); 6 | } 7 | 8 | void loop() { 9 | // PA0-PA7 PB0 PB1 PB2 PB11 PB12 PB14 PB15 10 | int achs[] = { A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14}; 11 | 12 | int achs_num = sizeof(achs) / sizeof(achs[0]); 13 | int ain[achs_num] = { 0 }; 14 | for (int i = 0; i < achs_num; i++) { 15 | ain[i] = analogRead(achs[i]); 16 | } 17 | Serial.print(ain[0]); 18 | for (int i = 1; i < achs_num; i++) { 19 | Serial.print(' '); 20 | Serial.print(ain[i]); 21 | } 22 | Serial.println(); 23 | } 24 | -------------------------------------------------------------------------------- /5775_ESPr_Dev_Grove/DIO_AIN/DIO_AIN.ino: -------------------------------------------------------------------------------- 1 | void setup() { 2 | pinMode(14, OUTPUT); // CN1 : set LED(D0) as an OUTPUT device 3 | pinMode(12, INPUT); // CN2 : set SW(D2) as an INPUT device 4 | pinMode(A0, INPUT); // CN3 : set Volume (A0) as an Analog INPUT device 5 | 6 | Serial.begin(115200); 7 | delay(1000); 8 | 9 | Serial.println(" "); 10 | Serial.println("Digital I/O, Analog Input Tset."); 11 | Serial.println(" "); 12 | delay(2000); 13 | } 14 | 15 | void loop() { 16 | if (digitalRead(12)) { 17 | digitalWrite(14, 1); 18 | Serial.print("1 : "); 19 | } else { 20 | digitalWrite(14, 0); 21 | Serial.print("0 : "); 22 | } 23 | Serial.println(analogRead(A0)); 24 | delay(100); 25 | } 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/dacout/dacout.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | const int pinDAC1 = PA4; // DAC1_CH1 4 | const int pinDAC2 = PA5; // DAC1_CH2 5 | 6 | const int numSamples = 100; // 波形の分解能 7 | const float amplitude = 2047.5; // 12bit DACの最大値(4095)の半分 8 | const float offset = 2047.5; // 中心値 9 | 10 | void setup() { 11 | analogWriteResolution(12); 12 | } 13 | 14 | void loop() { 15 | for (int i = 0; i < numSamples; i++) { 16 | float angle = (2 * M_PI * i) / numSamples; // 0 〜 2π の範囲で分割 17 | int sineValue = offset + amplitude * sin(angle); // サイン波 18 | int cosineValue = offset + amplitude * cos(angle); // コサイン波 19 | analogWrite(pinDAC1, sineValue); 20 | analogWrite(pinDAC2, cosineValue); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /9546_ADS7142_I2C_12bit_140k_x2_ADC_Module/Python/ads7142_read_ch0.py: -------------------------------------------------------------------------------- 1 | from smbus2 import SMBus, i2c_msg 2 | from time import sleep, time 3 | import struct 4 | 5 | devadr = 0x18 6 | bus = SMBus(1) 7 | 8 | def writeReg(reg, value): 9 | msg = i2c_msg.write(devadr, [0x08, reg, value]) 10 | bus.i2c_rdwr(msg) 11 | 12 | def readADC(length): 13 | msg = i2c_msg.read(devadr, length) 14 | bus.i2c_rdwr(msg) 15 | return [h[0]>>4 for h in struct.iter_unpack('>H', bytes(msg))] 16 | 17 | # ABORT_SEQUENCE 18 | writeReg(0x1F, 0x01) 19 | 20 | # OPMODE_SEL Manual Mode with CH0 only 21 | writeReg(0x1C, 0x00) 22 | 23 | # START_SEQUENCE start 24 | writeReg(0x1E, 0x01) 25 | 26 | while True: 27 | print(*readADC(2), sep = ',') 28 | -------------------------------------------------------------------------------- /TSL2561_breakout/Arduino/actinometer/README.md: -------------------------------------------------------------------------------- 1 | TSL2561を使った光量計 2 | ==== 3 | TSL2561で取得した光量(Lux)を小型グラフィック液晶AQM1248Aに表示する 4 | 5 | 使い方 6 | ---- 7 | 8 | + [Adafruit GFX library](https://github.com/adafruit/Adafruit-GFX-Library) の導入 9 | 10 | + [Adafruit TSL2561 library](https://github.com/adafruit/TSL2561-Arduino-Library) の導入 11 | 12 | + [AQM1248A library](https://github.com/SWITCHSCIENCE/samplecodes/tree/master/AQM1248A_breakout/Arduino/AQM1248A_lib) の導入 13 | 14 | + TSL2561 の接続 15 | 16 | + AQM1248A の接続 17 | 18 | + `actinomator.ino`の書き込み 19 | 20 | 関連情報 21 | ---- 22 | 23 | 1. [スイッチサイエンスマガジン](http://mag.switch-science.com/) 24 | 25 | 2. [TSL2561デジタル光センサボード](https://www.switch-science.com/catalog/2498/) 26 | 27 | 3. [AQM1248A小型グラフィック液晶ボード](https://www.switch-science.com/catalog/2608/) 28 | -------------------------------------------------------------------------------- /9662_ESPr_Developer_C6/i2c_scan/i2c_scan.ino: -------------------------------------------------------------------------------- 1 | #include "Wire.h" 2 | 3 | void setup() { 4 | Serial.begin(115200); 5 | Wire.setPins(0, 1); 6 | Wire.begin(); 7 | } 8 | 9 | void loop() { 10 | byte error, address; 11 | int nDevices = 0; 12 | 13 | delay(1000); 14 | 15 | Serial.println("Scanning for I2C devices ..."); 16 | for(address = 0x01; address < 0x7f; address++){ 17 | Wire.beginTransmission(address); 18 | error = Wire.endTransmission(); 19 | if (error == 0){ 20 | Serial.printf("I2C device found at address 0x%02X\n", address); 21 | nDevices++; 22 | } else if(error != 2){ 23 | Serial.printf("Error %d at address 0x%02X\n", error, address); 24 | } 25 | } 26 | if (nDevices == 0){ 27 | Serial.println("No I2C devices found"); 28 | } 29 | } -------------------------------------------------------------------------------- /10208_INA181_Current_Sensor_Module/measure_current/measure_current.ino: -------------------------------------------------------------------------------- 1 | const int pinSense = A0; 2 | 3 | float ref; 4 | 5 | void setup() { 6 | Serial.begin(115200); 7 | analogReadResolution(12); 8 | // 起動時に読み取った電圧の平均値を基準電圧とし、基準電圧との差分を電流値に変換する 9 | ref = 0; 10 | for (int i = 0; i < 1000; i++) { 11 | ref += analogRead(pinSense); 12 | delay(1); 13 | } 14 | ref /= 1000; 15 | } 16 | 17 | // analogReadの値をアンペアに変換するための定数 18 | #define VA (3.245 / 4096) 19 | // #define VA (0.001) 20 | 21 | void loop() { 22 | // INA181出力を取得 23 | int ain = analogRead(pinSense); 24 | // 1秒間の移動平均値を計算 25 | static float ma = 0; 26 | ma = (float)ain * 0.05 + ma * 0.95; 27 | // シリアルに出力(読み取った値 電流換算値mA) 28 | Serial.printf("%d %f\n", ain, ((ma - ref)*VA*1000)); 29 | // 待機 30 | delay(2); 31 | } 32 | -------------------------------------------------------------------------------- /BME280/README.md: -------------------------------------------------------------------------------- 1 | このリポジトリの内容は https://github.com/SWITCHSCIENCE/samplecodes に移動しました。 2 | これ以降、コードのアップデートがある場合は、移動先でのみ行う予定です。 3 | 4 | # BME280 5 | 6 | BME280 is environmental sensor that makes Bosch Sensortec. It can sense pressure, humidity and temperature. 7 | [http://www.bosch-sensortec.com/en/homepage/products_3/environmental_sensors_1/bme280/bme280_1](http://www.bosch-sensortec.com/en/homepage/products_3/environmental_sensors_1/bme280/bme280_1) 8 | 9 | ## How to use 10 | [BME280搭載 温湿度・気圧センサモジュールの使い方](http://trac.switch-science.com/wiki/BME280) (Japanese) 11 | 12 | ## Buy 13 | [BME280搭載 温湿度・気圧センサモジュール](https://www.switch-science.com/catalog/2236/) for Japan 14 | [BME280 Temperature/Humidity/Barometric Pressure Sensor Breakout](https://international.switch-science.com/catalog/2236/) for Worldwide. 15 | -------------------------------------------------------------------------------- /ESPr-IR/ESPrIR_dumper/README.md: -------------------------------------------------------------------------------- 1 | ESPr IR 赤外線リモコン データ受信機 2 | ==== 3 | 赤外線リモコンから送信されているデータを解析する 4 | 5 | 使い方 6 | ---- 7 | 8 | + スケッチを書き込み、シリアルモニタを開く 9 | 10 | + シリアルモニタに表示されるdumpedData[]をコピーする 11 | + (例) 12 | ``` 13 | unsigned int dumpedData[4] = { 14 | 3400,1600,450,1200 15 | }; 16 | ``` 17 | 18 | 19 | データ内容 20 | ---- 21 | 22 | + 配列の要素は単位usの時間 23 | 24 | + 信号が検知された時間、されなかった時間、された時間・・・と繰り返し記録されている。 25 | 26 | + `{3400,1600,450,1200}`の場合、3400us間検知され、1600us間検知されず、450us間検知され、1200us間検知されず、といった具合 27 | 28 | 29 | 関連情報 30 | ---- 31 | 32 | 1. [ESPr IR 赤外線リモコン](https://www.switch-science.com/catalog/2740/) 33 | 34 | 2. [スイッチサイエンスマガジン](http://mag.switch-science.com/) 35 | 36 | 3. [ESPr IR sender](https://github.com/SWITCHSCIENCE/samplecodes/tree/master/ESPr-IR/ESPrIR_sender) -------------------------------------------------------------------------------- /9546_ADS7142_I2C_12bit_140k_x2_ADC_Module/Python/ads7142_read_1second.py: -------------------------------------------------------------------------------- 1 | from smbus2 import SMBus, i2c_msg 2 | from time import sleep, time 3 | import struct 4 | 5 | devadr = 0x18 6 | bus = SMBus(1) 7 | 8 | def writeReg(reg, value): 9 | msg = i2c_msg.write(devadr, [0x08, reg, value]) 10 | bus.i2c_rdwr(msg) 11 | 12 | def readADC(length): 13 | msg = i2c_msg.read(devadr, length) 14 | bus.i2c_rdwr(msg) 15 | return [h[0]>>4 for h in struct.iter_unpack('>H', bytes(msg))] 16 | 17 | # ABORT_SEQUENCE 18 | writeReg(0x1F, 0x01) 19 | 20 | # OPMODE_SEL Manual Mode with CH0 only 21 | writeReg(0x1C, 0x00) 22 | 23 | # START_SEQUENCE start 24 | writeReg(0x1E, 0x01) 25 | 26 | t1 = time() 27 | data = [] 28 | while time() - t1 < 1: 29 | data.extend(readADC(2)) 30 | for dat in data: 31 | print(dat) 32 | -------------------------------------------------------------------------------- /9826_MA735_Digital_Angle_Sensor_Module/ma735_simple_read/ma735_simple_read.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | const int MA735_CS = SS; 4 | SPISettings settings = SPISettings(10000000, MSBFIRST, SPI_MODE0); 5 | 6 | void setup() { 7 | // put your setup code here, to run once: 8 | Serial.begin(115200); 9 | SPI.begin(); 10 | pinMode(MA735_CS, OUTPUT); 11 | digitalWrite(MA735_CS, HIGH); 12 | } 13 | 14 | void loop() { 15 | uint16_t rd = readAngle(); 16 | if (rd >= 32768) rd = 32768 - (rd - 32768); // 連続値に変換 17 | Serial.println(rd); 18 | delay(20); 19 | } 20 | 21 | uint16_t readAngle() { 22 | SPI.beginTransaction(settings); 23 | digitalWrite(MA735_CS, LOW); 24 | uint16_t rd = SPI.transfer16(0); // 角度の読み込み 25 | digitalWrite(MA735_CS, HIGH); 26 | SPI.endTransaction(); 27 | return rd; 28 | } 29 | -------------------------------------------------------------------------------- /ESP-WROOM-02/ESPWiFi_SD_Logger/README.md: -------------------------------------------------------------------------------- 1 | ESP-WROOM-02を使ったWiFi機能付き温度ロガー 2 | ==== 3 | ESP-WROOM-02にSDカードおよびBME280(温度,気温,湿度センサ)を接続し、WEBブラウザから記録された各データをグラフ表示 4 | 5 | 使い方 6 | ---- 7 | 8 | + [Arduino Time Library](http://playground.arduino.cc/code/time)を別途導入する 9 | 10 | + `/SDcard` の中身をすべて接続するSDカードのルートにコピーする 11 | 12 | + `ESPWiFi_SD_Logger.ino`を書き込む 13 | 14 | + IDEのシリアルモニタからIPアドレスを確認 15 | 16 | + `http://(IP)/graph.htm` でグラフ画面にアクセス 17 | 18 | + 表示するファイルの変更が可能 19 | 20 | + ファイル名は例えば2016年2月の場合、`2016-02.csv`となるので`2016-02`と画面には入力 21 | 22 | + サンプルデータとして`2016-02.csv`を同梱 23 | 24 | 関連情報 25 | ---- 26 | 27 | 1. [スイッチサイエンスマガジン](http://mag.switch-science.com/) 28 | 29 | 2. [ESP-WROOM-02 開発ボード](https://www.switch-science.com/catalog/2500/) 30 | 31 | ## Licence 32 | 33 | GNU Lesser General Public License Version 2.1 34 | -------------------------------------------------------------------------------- /GPS_shield_for_ESPr/espr_dev_gnss_serial_pass/espr_dev_gnss_serial_pass.ino: -------------------------------------------------------------------------------- 1 | #ifdef ARDUINO_ESP32C6_DEV 2 | const int rxPin = 15; 3 | const int txPin = 21; 4 | #elif ARDUINO_ESP32S3_DEV 5 | const int rxPin = 40; 6 | const int txPin = 35; 7 | #else // ESP32_DEV 8 | const int rxPin = 19; 9 | const int txPin = 21; 10 | #endif 11 | 12 | void setup() { 13 | Serial.begin(115200); 14 | Serial1.begin(9600, SERIAL_8N1, rxPin, txPin); 15 | } 16 | 17 | void loop() { 18 | if (Serial.available()) { // If anything comes in Serial (USB), 19 | Serial1.write(Serial.read()); // read it and send it out Serial1 (pins 0 & 1) 20 | } 21 | 22 | if (Serial1.available()) { // If anything comes in Serial1 (pins 0 & 1) 23 | Serial.write(Serial1.read()); // read it and send it out Serial (USB) 24 | } 25 | } -------------------------------------------------------------------------------- /5775_ESPr_Dev_Grove/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes (Arduino IDE for ESP-WROOM-02) 2 | 3 | Softwares for ESPr Branch (ESPr_Dev_Grove) 4 | 5 | + BME280 -------------- I2C(BME280)のサンプルプログラムの格納ディレクトリ 6 | + BME280.ino ------ GROVE - 温湿度・気圧センサ(BME280)の値を読むサンプルプログラム (Seeed_BME280 ライブラリ利用) 7 | 8 | + DIO_AIN ------------- デジタル I/O、アナログ IN のサンプルプログラムの格納ディレクトリ 9 | + DIO_AIN.ino ----- 各種I/Oの値を読み書きするサンプルプログラム(GROVE - ボタン(パネルタイプ) の値を読む/GROVE - LED 青 を光らせる/GROVE - ボリューム(パネルタイプ) の値を読む) 10 | 11 | # Hardware 12 | 13 | + [GROVE - 温湿度・気圧センサ(BME280)](https://www.switch-science.com/catalog/3374/) 14 | 15 | + [GROVE - ボタン(パネルタイプ)](https://www.switch-science.com/catalog/1246/) 16 | 17 | + [GROVE - LED 青](https://www.switch-science.com/catalog/1251/) 18 | 19 | + [GROVE - ボリューム(パネルタイプ)](https://www.switch-science.com/catalog/1247/) 20 | -------------------------------------------------------------------------------- /5372_ESPr_Dev32_Grove/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes (Arduino IDE for ESP-WROOM-32) 2 | 3 | Softwares for ESPr Branch 32 (ESPr_Dev32_Grove) 4 | 5 | + BME280 -------------- I2C(BME280)のサンプルプログラムの格納ディレクトリ 6 | + BME280.ino ------ GROVE - 温湿度・気圧センサ(BME280)の値を読むサンプルプログラム (Seeed_BME280 ライブラリ利用) 7 | 8 | + DIO_AIN ------------- デジタル I/O、アナログ IN のサンプルプログラムの格納ディレクトリ 9 | + DIO_AIN.ino ----- 各種I/Oの値を読み書きするサンプルプログラム(GROVE - ボタン(パネルタイプ) の値を読む/GROVE - LED 青 を光らせる/GROVE - ボリューム(パネルタイプ) の値を読む) 10 | 11 | # Hardware 12 | 13 | + [GROVE - 温湿度・気圧センサ(BME280)](https://www.switch-science.com/catalog/3374/) 14 | 15 | + [GROVE - ボタン(パネルタイプ)](https://www.switch-science.com/catalog/1246/) 16 | 17 | + [GROVE - LED 青](https://www.switch-science.com/catalog/1251/) 18 | 19 | + [GROVE - ボリューム(パネルタイプ)](https://www.switch-science.com/catalog/1247/) 20 | -------------------------------------------------------------------------------- /9546_ADS7142_I2C_12bit_140k_x2_ADC_Module/Python/ads7142_simple_read.py: -------------------------------------------------------------------------------- 1 | from smbus2 import SMBus, i2c_msg 2 | from time import sleep, time 3 | import struct 4 | 5 | devadr = 0x18 6 | bus = SMBus(1) 7 | 8 | def writeReg(reg, value): 9 | msg = i2c_msg.write(devadr, [0x08, reg, value]) 10 | bus.i2c_rdwr(msg) 11 | 12 | def readADC(length): 13 | msg = i2c_msg.read(devadr, length) 14 | bus.i2c_rdwr(msg) 15 | return [h[0]>>4 for h in struct.iter_unpack('>H', bytes(msg))] 16 | 17 | # ABORT_SEQUENCE 18 | writeReg(0x1F, 0x01) 19 | 20 | # AUTO_SEQ_CHEN Channel 0/1 is selected 21 | writeReg(0x20, 0x03) 22 | 23 | # OPMODE_SEL Manual Mode with AUTO Sequencing enabled 24 | writeReg(0x1C, 0x04) 25 | 26 | # START_SEQUENCE start 27 | writeReg(0x1E, 0x01) 28 | 29 | while True: 30 | print(*readADC(4), sep = ',') 31 | -------------------------------------------------------------------------------- /RP2350_benchmark/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12) 2 | 3 | # Pull in SDK (must be before project) 4 | include(pico_sdk_import.cmake) 5 | 6 | project(rp2350_benchmark_project C CXX ASM) 7 | 8 | set(CMAKE_C_STANDARD 11) 9 | set(CMAKE_CXX_STANDARD 17) 10 | 11 | # If you want debug output from USB (pass -DPICO_STDIO_USB=1) this ensures you don't lose any debug output while USB is set up 12 | if (NOT DEFINED PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS) 13 | set(PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS 3000) 14 | endif() 15 | 16 | # Initialize the SDK 17 | pico_sdk_init() 18 | 19 | add_subdirectory(benchmark_double) 20 | add_subdirectory(benchmark_float) 21 | add_subdirectory(benchmark_integer) 22 | add_subdirectory(memory_test) 23 | add_subdirectory(bitbang) 24 | add_subdirectory(idle) 25 | -------------------------------------------------------------------------------- /Conta/2774_BD7411G_module/BD7411G_module/BD7411G_module.ino: -------------------------------------------------------------------------------- 1 | /* Three Hall sensors (M2,M4,M6) on the Conta shield */ 2 | 3 | #define _HALL1 15 // Conta shield digital pin from M2 (IO1:digital) 4 | #define _HALL2 17 // Conta shield digital pin from M4 (IO1:digital) 5 | #define _HALL3 19 // Conta shield digital pin from M6 (IO1:digital) 6 | 7 | int val,tmp; 8 | 9 | void setup() { 10 | pinMode(_HALL1, INPUT); 11 | pinMode(_HALL2, INPUT); 12 | pinMode(_HALL3, INPUT); 13 | 14 | Serial.begin(115200); 15 | } 16 | 17 | void loop() { 18 | val = 8; 19 | 20 | if (digitalRead(_HALL1) == LOW) val += 4; 21 | if (digitalRead(_HALL2) == LOW) val += 2; 22 | if (digitalRead(_HALL3) == LOW) val += 1; 23 | 24 | Serial.print(val, BIN); 25 | Serial.print(" "); 26 | 27 | Serial.println(); 28 | delay(100); 29 | } 30 | 31 | -------------------------------------------------------------------------------- /Conta/3361_BU52061NVX_module/BU52061NVX_module/BU52061NVX_module.ino: -------------------------------------------------------------------------------- 1 | /* Three Hall sensors (M2,M4,M6) on the Conta shield */ 2 | 3 | #define _HALL1 15 // Conta shield digital pin from M2 (IO1:digital) 4 | #define _HALL2 17 // Conta shield digital pin from M4 (IO1:digital) 5 | #define _HALL3 19 // Conta shield digital pin from M6 (IO1:digital) 6 | 7 | int val,tmp; 8 | 9 | void setup() { 10 | pinMode(_HALL1, INPUT); 11 | pinMode(_HALL2, INPUT); 12 | pinMode(_HALL3, INPUT); 13 | 14 | Serial.begin(115200); 15 | } 16 | 17 | void loop() { 18 | val = 8; 19 | 20 | if (digitalRead(_HALL1) == LOW) val += 4; 21 | if (digitalRead(_HALL2) == LOW) val += 2; 22 | if (digitalRead(_HALL3) == LOW) val += 1; 23 | 24 | Serial.print(val, BIN); 25 | Serial.print(" "); 26 | 27 | Serial.println(); 28 | delay(100); 29 | } 30 | 31 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/hse_enable/hse_enable.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | const int pwmPin = PB15; 4 | HardwareTimer *MyTim; 5 | 6 | void setup() { 7 | 8 | // Automatically retrieve TIM instance and channel associated to pin 9 | // This is used to be compatible with all STM32 series automatically. 10 | TIM_TypeDef *Instance = (TIM_TypeDef *)pinmap_peripheral(digitalPinToPinName(pwmPin), PinMap_PWM); 11 | uint32_t channel = STM_PIN_CHANNEL(pinmap_function(digitalPinToPinName(pwmPin), PinMap_PWM)); 12 | 13 | // Instantiate HardwareTimer object. Thanks to 'new' instantiation, HardwareTimer is not destructed when setup() function is finished. 14 | MyTim = new HardwareTimer(Instance); 15 | 16 | // Configure and start PWM 17 | MyTim->setPWM(channel, pwmPin, 1000, 50); // 1kHz, 50% dutycycle 18 | } 19 | 20 | void loop() { 21 | } 22 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/pwm_servo/pwm_servo.ino: -------------------------------------------------------------------------------- 1 | const int servoPin = PA10; // PWM対応ピンを指定 2 | 3 | void setup() { 4 | pinMode(servoPin, OUTPUT); 5 | analogWriteFrequency(50); // サーボ用のPWM周波数(50Hz)に設定 6 | analogWriteResolution(16); // 16ビット分解能(0〜65535)で指定 7 | } 8 | 9 | void loop() { 10 | setServoAngle(0); // 0度 11 | delay(1000); 12 | setServoAngle(90); // 90度 13 | delay(1000); 14 | setServoAngle(180); // 180度 15 | delay(1000); 16 | setServoAngle(90); // 90度 17 | delay(1000); 18 | } 19 | 20 | // サーボ角度を0〜180度で指定する関数 21 | void setServoAngle(int angle) { 22 | // 0.5ms〜2.5msに相当するPWMデューティ比を計算(分解能に合わせる) 23 | int minPulse = 1638; // 0.5ms / 20ms * 65535 ≒ 1638 24 | int maxPulse = 8191; // 2.5ms / 20ms * 65535 ≒ 8191 25 | 26 | int duty = map(angle, 0, 180, minPulse, maxPulse); 27 | analogWrite(servoPin, duty); 28 | } 29 | -------------------------------------------------------------------------------- /RP2350_benchmark/memory_test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if (TARGET tinyusb_device) 2 | add_executable(memory_test 3 | memory_test.c 4 | ) 5 | 6 | # pull in common dependencies 7 | target_link_libraries(memory_test pico_stdlib pico_rand pico_time) 8 | 9 | # enable usb output, disable uart output 10 | pico_enable_stdio_usb(memory_test 1) 11 | pico_enable_stdio_uart(memory_test 0) 12 | 13 | # create map/bin/hex/uf2 file etc. 14 | pico_add_extra_outputs(memory_test) 15 | 16 | # add url via pico_set_program_url 17 | # example_auto_set_url(memory_test) 18 | 19 | # set custom linker script 20 | # pico_set_linker_script(memory_test ${CMAKE_CURRENT_SOURCE_DIR}/memmap_default.ld) 21 | 22 | elseif(PICO_ON_DEVICE) 23 | message(WARNING "not building memory_test because TinyUSB submodule is not initialized in the SDK") 24 | endif() 25 | -------------------------------------------------------------------------------- /SC16IS750IPW_breakout/mbed/Test_SC16IS750/SC16IS750.h: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** SC16IS750.h ** 3 | ** ** 4 | ** Created : 2015/06/26 15:24:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | 9 | /*--------------------------------------------------- 10 | Constant value 11 | */ 12 | const int addr = 0x98; // define the I2C Address 13 | 14 | /*--------------------------------------------------- 15 | Register Address 16 | */ 17 | /* ---- General register set ---- */ 18 | #define THR 0x00 19 | #define RHR 0x00 20 | #define FCR 0x02 21 | #define LCR 0x03 22 | #define MCR 0x04 23 | 24 | /* ---- Special register set ---- */ 25 | #define DLL 0x00 26 | #define DLH 0x01 27 | 28 | /* ---- Enhanced register set ---- */ 29 | #define EFR 0x02 30 | -------------------------------------------------------------------------------- /10004_Conta_5x5_RGB_LED_Matrix_Module/conta_5x5_matrix_simple/conta_5x5_matrix_simple.ino: -------------------------------------------------------------------------------- 1 | // Raspberry Pi PicoとRaspberry Pi Pico用 Conta™ベースボード(ESP-WROOM-02搭載)を利用 2 | // MatrixモジュールはM1ソケットに接続 3 | // このサンプルはAdafruit_NeoPixelライブラリのサンプルコード simple.ino をベースにしています。 4 | 5 | #include 6 | 7 | #define NUMPIXELS 25 8 | #define PIN 18 9 | 10 | Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); 11 | 12 | void setup(void) { 13 | pixels.begin(); 14 | } 15 | 16 | void loop(void) { 17 | pixels.clear(); // すべてのピクセルをオフにする 18 | 19 | // 最初のNeoPixelは#0、次は1というように、ピクセルの数-1まで繰り返す 20 | for (int i = 0; i < NUMPIXELS; i++) { 21 | // pixels.Color()はRGB値を設定。0,0,0から255,255,255までの範囲 22 | // ここでは適度に明るい緑色を使用 23 | pixels.setPixelColor(i, pixels.Color(0, 16, 0)); 24 | 25 | pixels.show(); // 更新されたピクセルの色をハードウェアに送信する 26 | 27 | delay(500); // 次のループまで500ミリ秒待機 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /RP2350_benchmark/benchmark_float/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if (TARGET tinyusb_device) 2 | add_executable(benchmark_float 3 | benchmark_float.c 4 | ) 5 | 6 | # pull in common dependencies 7 | target_link_libraries(benchmark_float pico_stdlib pico_rand pico_time) 8 | 9 | # enable usb output, disable uart output 10 | pico_enable_stdio_usb(benchmark_float 1) 11 | pico_enable_stdio_uart(benchmark_float 0) 12 | 13 | # create map/bin/hex/uf2 file etc. 14 | pico_add_extra_outputs(benchmark_float) 15 | 16 | # add url via pico_set_program_url 17 | # example_auto_set_url(benchmark_float) 18 | 19 | # set custom linker script 20 | # pico_set_linker_script(benchmark_float ${CMAKE_CURRENT_SOURCE_DIR}/memmap_default.ld) 21 | 22 | elseif(PICO_ON_DEVICE) 23 | message(WARNING "not building benchmark_float because TinyUSB submodule is not initialized in the SDK") 24 | endif() 25 | -------------------------------------------------------------------------------- /Conta/2775_KXG03_module/KXG03_module/KXG03_module.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | KXG03 kxg03; 5 | 6 | void setup() { 7 | byte rc; 8 | 9 | Serial.begin(115200); 10 | while (!Serial); 11 | 12 | Wire.begin(); 13 | 14 | rc = kxg03.init(KXG03_DEVICE_ADDRESS_4E); 15 | } 16 | 17 | void loop() { 18 | byte rc; 19 | float val[6]; 20 | 21 | rc = kxg03.get_val(val); 22 | if (rc == 0) { 23 | Serial.print("X-Gyro: "); 24 | Serial.println(val[0], 2); 25 | Serial.print("Y-Gyro: "); 26 | Serial.println(val[1], 2); 27 | Serial.print("Z-Gyro: "); 28 | Serial.println(val[2], 2); 29 | Serial.print("X-Accelerator: "); 30 | Serial.println(val[3], 2); 31 | Serial.print("Y-Accelerator: "); 32 | Serial.println(val[4], 2); 33 | Serial.print("Z-Accelerator: "); 34 | Serial.println(val[5], 2); 35 | Serial.println(" "); 36 | } 37 | delay(100); 38 | } 39 | 40 | -------------------------------------------------------------------------------- /RP2350_benchmark/benchmark_double/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if (TARGET tinyusb_device) 2 | add_executable(benchmark_double 3 | benchmark_double.c 4 | ) 5 | 6 | # pull in common dependencies 7 | target_link_libraries(benchmark_double pico_stdlib pico_rand pico_time) 8 | 9 | # enable usb output, disable uart output 10 | pico_enable_stdio_usb(benchmark_double 1) 11 | pico_enable_stdio_uart(benchmark_double 0) 12 | 13 | # create map/bin/hex/uf2 file etc. 14 | pico_add_extra_outputs(benchmark_double) 15 | 16 | # add url via pico_set_program_url 17 | # example_auto_set_url(benchmark_double) 18 | 19 | # set custom linker script 20 | # pico_set_linker_script(benchmark_double ${CMAKE_CURRENT_SOURCE_DIR}/memmap_default.ld) 21 | 22 | elseif(PICO_ON_DEVICE) 23 | message(WARNING "not building benchmark_double because TinyUSB submodule is not initialized in the SDK") 24 | endif() 25 | -------------------------------------------------------------------------------- /PCAL9555APW_breakout/mbed/Test_PCAL9555APW/PCAL9555APW.h: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** PCAL9555APW.h ** 3 | ** ** 4 | ** Created : 2015/07/10 15:41:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | 9 | /*--------------------------------------------------- 10 | Constant value 11 | */ 12 | const int addr = 0x40; // define the I2C Address 13 | 14 | /*--------------------------------------------------- 15 | Register Address 16 | */ 17 | #define InputPort0 0x00 18 | #define InputPort1 0x01 19 | #define OutputPort0 0x02 20 | #define OutputPort1 0x03 21 | #define PolarityInversionPort0 0x04 22 | #define PolarityInversionPort1 0x05 23 | #define Configuration0 0x06 24 | #define Configuration1 0x07 25 | #define InputLatchRegister0 0x44 26 | -------------------------------------------------------------------------------- /RP2350_benchmark/benchmark_integer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if (TARGET tinyusb_device) 2 | add_executable(benchmark_integer 3 | benchmark_integer.c 4 | ) 5 | 6 | # pull in common dependencies 7 | target_link_libraries(benchmark_integer pico_stdlib pico_rand pico_time) 8 | 9 | # enable usb output, disable uart output 10 | pico_enable_stdio_usb(benchmark_integer 1) 11 | pico_enable_stdio_uart(benchmark_integer 0) 12 | 13 | # create map/bin/hex/uf2 file etc. 14 | pico_add_extra_outputs(benchmark_integer) 15 | 16 | # add url via pico_set_program_url 17 | # example_auto_set_url(benchmark_integer) 18 | 19 | # set custom linker script 20 | # pico_set_linker_script(benchmark_integer ${CMAKE_CURRENT_SOURCE_DIR}/memmap_default.ld) 21 | 22 | elseif(PICO_ON_DEVICE) 23 | message(WARNING "not building benchmark_integer because TinyUSB submodule is not initialized in the SDK") 24 | endif() 25 | -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_SPI_MUX/Readme.md: -------------------------------------------------------------------------------- 1 | # ESPr® Developer 32 向けSPI通信サンプルスケッチ 2 | 3 | ESPr Developer 32上でSPI通信をするサンプルスケッチ。ピンマトリクス機能を使うことでブレッドボード上での配線で完結します。 4 | 5 | ![全体の様子](board.jpg) 6 | 7 | 使い方 8 | ---- 9 | 10 | + [AQM1248A Simple Library](https://github.com/SWITCHSCIENCE/samplecodes/tree/master/AQM1248A_breakout/Arduino/AQM1248A_lib)を導入する 11 | 12 | + 本スケッチを書き込む 13 | 14 | + 一度書き込んだあとに以下のように液晶と開発ボードを接続する 15 | ![配線図](connect.jpg) 16 | + 一度ピン設定を書き込まない場合、液晶モジュールに逆電圧がかかり破損の可能性があります 17 | 18 | + 開発ボードをリセットする 19 | 20 | 21 | 説明 22 | ---- 23 | 24 | ESP32にはIOマトリクス機能という、SPIやI2C通信用のピンを自由に設定できる機能があります。本スケッチは、そのマトリックス機能を利用して、SPI通信を任意のピンにリマップすることで、ジャンパワイヤなしに液晶モージュールとの通信を行うというデモです。 25 | 26 | 関連情報 27 | ---- 28 | 29 | 1. [ESP-WROOM-32に関するTIPS](http://trac.switch-science.com/wiki/esp32_tips) 30 | 31 | 2. [ESPr® Developer 32](https://www.switch-science.com/catalog/3210/) 32 | 33 | 3. [AQM1248A小型グラフィック液晶ボード](https://www.switch-science.com/catalog/2608/) 34 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/sleep.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2016, ARM Limited, All Rights Reserved 3 | * SPDX-License-Identifier: Apache-2.0 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 6 | * not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef MBED_OLD_SLEEP_H 19 | #define MBED_OLD_SLEEP_H 20 | 21 | #warning sleep.h has been replaced by mbed_sleep.h, please update to mbed_sleep.h [since mbed-os-5.3] 22 | #include "platform/mbed_sleep.h" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/mbed_lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "platform", 3 | "config": { 4 | "stdio-convert-newlines": { 5 | "help": "Enable conversion to standard newlines on stdin/stdout", 6 | "value": false 7 | }, 8 | 9 | "stdio-baud-rate": { 10 | "help": "Baud rate for stdio", 11 | "value": 9600 12 | }, 13 | 14 | "stdio-flush-at-exit": { 15 | "help": "Enable or disable the flush of standard I/O's at exit.", 16 | "value": true 17 | }, 18 | 19 | "default-serial-baud-rate": { 20 | "help": "Default baud rate for a Serial or RawSerial instance (if not specified in the constructor)", 21 | "value": 9600 22 | } 23 | }, 24 | "target_overrides": { 25 | "EFM32": { 26 | "stdio-baud-rate": 115200 27 | }, 28 | "EFR32": { 29 | "stdio-baud-rate": 115200 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/critical.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2016, ARM Limited, All Rights Reserved 3 | * SPDX-License-Identifier: Apache-2.0 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 6 | * not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef MBED_OLD_CRITICAL_H 19 | #define MBED_OLD_CRITICAL_H 20 | 21 | #warning critical.h has been replaced by mbed_critical.h, please update to mbed_critical.h [since mbed-os-5.3] 22 | #include "platform/mbed_critical.h" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/rtc_time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2016, ARM Limited, All Rights Reserved 3 | * SPDX-License-Identifier: Apache-2.0 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 6 | * not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef MBED_OLD_RTC_TIME_H 19 | #define MBED_OLD_RTC_TIME_H 20 | 21 | #warning rtc_time.h has been replaced by mbed_rtc_time.h, please update to mbed_rtc_time.h [since mbed-os-5.3] 22 | #include "platform/mbed_rtc_time.h" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/wait_api.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2016, ARM Limited, All Rights Reserved 3 | * SPDX-License-Identifier: Apache-2.0 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 6 | * not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef MBED_OLD_WAIT_API_H 19 | #define MBED_OLD_WAIT_API_H 20 | 21 | #warning wait_api.h has been replaced by mbed_wait_api.h, please update to mbed_wait_api.h [since mbed-os-5.3] 22 | #include "platform/mbed_wait_api.h" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /8296_Picossci_DC_Servo_motor_driver/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes (Picossci DC Servo motor driver) 2 | 3 | Softwares for Picossci DC Servo motor driver 4 | 5 | + example -------------------------- Picossci DC Servo motor driver のホスト側サンプルプログラムの格納ディレクトリ 6 | + RPi_4_Host.py ------------------- Raspberry Pi 4 用 サーボx4、DCモーターx1、LEDx2を制御するホスト側サンプルプログラム(Python3) 7 | + RPi_Pico_Host.py ---------------- Raspberry Pi Pico 用 サーボx4、DCモーターx1、LEDx2を制御するホスト側サンプルプログラム(MicroPython) 8 | 9 | + firmwear ------------------------- Picossci DC Servo motor driver の初期ファームウェアの格納ディレクトリ 10 | + ArduinoIDE ----------------------- Arduino言語版 11 | + MotorCommandHAT.ino -------------- 初期ファームウェア (Arduino言語版) 12 | + MotorCommandHAT.ino.generic.uf2 -- ファームウェアバイナリー 13 | + MicroPython ---------------------- MicroPython言語版 14 | + MotorCommandHAT.py --------------- 初期ファームウェア (MicroPython版) 15 | + rp2-pico-20220618-v1.19.1.uf2 ---- RP2040 MicroPython 16 | + Command.txt ---------------------- 初期ファームウェアの制御コマンドについて 17 | -------------------------------------------------------------------------------- /10030_Conta_Passive_Buzzer_Module/ringtone/ringtone.ino: -------------------------------------------------------------------------------- 1 | const int pinBzz = 18; 2 | 3 | void setup(void) { 4 | } 5 | 6 | void loop(void) { 7 | delay(1500); 8 | 9 | tone(pinBzz, 690, 25); 10 | delay(50); 11 | 12 | tone(pinBzz, 690, 30); 13 | delay(168); 14 | 15 | tone(pinBzz, 690, 23); 16 | delay(48); 17 | 18 | tone(pinBzz, 690, 30); 19 | delay(360); 20 | 21 | 22 | tone(pinBzz, 970, 25); 23 | delay(50); 24 | 25 | tone(pinBzz, 970, 30); 26 | delay(50); 27 | 28 | tone(pinBzz, 970, 30); 29 | delay(50); 30 | 31 | tone(pinBzz, 970, 30); 32 | delay(50); 33 | 34 | 35 | tone(pinBzz, 487, 30); 36 | delay(55); 37 | 38 | tone(pinBzz, 487, 30); 39 | delay(55); 40 | 41 | tone(pinBzz, 487, 30); 42 | delay(55); 43 | 44 | tone(pinBzz, 487, 30); 45 | delay(55); 46 | 47 | tone(pinBzz, 487, 30); 48 | delay(55); 49 | 50 | tone(pinBzz, 487, 30); 51 | delay(55); 52 | 53 | tone(pinBzz, 487, 30); 54 | delay(55); 55 | 56 | tone(pinBzz, 487, 30); 57 | delay(55); 58 | } -------------------------------------------------------------------------------- /1796_RPi_EnvSensor/README.md: -------------------------------------------------------------------------------- 1 | # RPi_EnvSensor 2 | 3 | ## Softwares for RPi_EnvSensor board by Switch Science Inc. 4 | 5 | + ATTiny ------------ ATTiny85に書き込まれたファームウェアの格納ディレクトリ 6 | + main.c ------------ 初期化、メインループ、ADコンバータ関連の処理 7 | + I2Cslave.h -------- ファームウェア全体で使われる define 8 | + USI_TWI_Slave.c --- USI を使った I2C バス関連の処理(サブルーチンと割り込み処理) 9 | + USI_TWI_Slave.h --- I2Cバス関連の define 10 | + I2Cslave.hex ------ ファームウェアの Hexファイル 11 | + readme.md --------- ヒューズ設定 12 | 13 | + Python_RPi -------- Raspberry Pi 用の Python スクリプトの格納ディレクトリ 14 | + i2c_Sensor4.py ---- センサー基板をドライブするサンプルアプリ 15 | (オプション液晶[AQM1248A]の表示ルーチン込) 16 | 17 | ## Hardware 18 | 19 | ### 環境センサー - [BME280](https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf) 20 | 21 | ### 照度センサー(フォトトランジスタ) - [APT2012P3BT](https://www.kingbrightusa.com/images/catalog/spec/APT2012P3BT.pdf) 22 | 23 | ### 赤外線LED - [APT1608F3C](https://www.kingbrightusa.com/images/catalog/spec/APT1608F3C.pdf) 24 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/semihost_api.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2016, ARM Limited, All Rights Reserved 3 | * SPDX-License-Identifier: Apache-2.0 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 6 | * not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef MBED_OLD_SEMIHOST_API_H 19 | #define MBED_OLD_SEMIHOST_API_H 20 | 21 | #warning semihost_api.h has been replaced by mbed_semihost_api.h, please update to mbed_semihost_api.h [since mbed-os-5.3] 22 | #include "platform/mbed_semihost_api.h" 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/toolchain.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup platform */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2006-2013 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #ifndef MBED_OLD_TOOLCHAIN_H 21 | #define MBED_OLD_TOOLCHAIN_H 22 | 23 | #warning toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] 24 | #include "platform/mbed_toolchain.h" 25 | 26 | #endif 27 | 28 | /** @}*/ 29 | -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_SPI_MUX/ESP32_SPI_MUX.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include "AQM1248A.h" 3 | 4 | // AQM1248A SETTINGS 5 | #define AQM_GND 2 6 | #define SCK 0 7 | #define MISO 19 8 | #define MOSI 16 9 | #define SS 16 10 | #define PWR 18 11 | #define RS 5 12 | #define CS 17 13 | AQM1248A aqm = AQM1248A(CS,RS,PWR); 14 | 15 | void setup() { 16 | Serial.begin(9600); 17 | 18 | /* AQM1248A Settings*/ 19 | SPI.beginTransaction(SPISettings(20000000, MSBFIRST, SPI_MODE0)); 20 | SPI.begin(SCK,MISO,MOSI,SS); 21 | pinMode(AQM_GND,OUTPUT); 22 | digitalWrite(AQM_GND,LOW); 23 | aqm.begin(); // 初期化します 24 | // 初期画像 25 | aqm.showPic(); // バッファの内容を液晶に反映します(必須) 26 | delay(1000); 27 | aqm.fillScreen(0); 28 | aqm.showPic(); 29 | } 30 | 31 | void loop() { 32 | aqm.fillScreen(0); 33 | aqm.setCursor(0,0); 34 | aqm.setTextColor(1); 35 | aqm.setTextSize(1); 36 | aqm.print("ESPr Developer 32\n"); 37 | aqm.print("SPI DEMO with IO MUX\n"); 38 | aqm.print("ssci.to/3210"); 39 | aqm.showPic(); 40 | 41 | delay(1500); 42 | 43 | } -------------------------------------------------------------------------------- /Conta/3929_SPRESENSE_ESP02_Base/SPRESENSE/README.md: -------------------------------------------------------------------------------- 1 | # SPRESENSE_ESP02_Base "SPRESENSE_ESP02_Base" is a baseboard equipped with ESP-WROOM-02 for SPRESENSE. The baseboard can also carry a small Conta standard board with sensors etc. ## How to use [SPRESENSE用 Contaベースボード](https://www.switch-science.com/catalog/3929/) (Japanese) ## Buy [SPRESENSE用 Contaベースボード](https://www.switch-science.com/catalog/3929/) for Japan ## Sample codes (Arduino IDE for SPRESENSE) + SPRESENSE + 2x2_switch_module --- 2x2 switch を使ったデジタル出力とアナログ入力のテストプログラムです。[ 2x2 switch test. Digital out, analog In test. ] + FeRAM_SPI_breakout --- SPI 接続を使って FeRAM にアクセスするテストプログラムです。[ FeRAM + 2x2 switch test. SPI connection access test to FeRAM. ] + LED_Bar_module --- I2C 接続を使って LED バーモジュール を制御するテストプログラムです。[ LED bar test. I2C connection access test to LED bar. ] + RTC_module --- I2C 接続を使ってリアルタイムクロック(RTC) にアクセスするテストプログラムです。[ RTC + 2x2 switch test. I2C connection access test to RTC. ] + __Serial --- SPRESENSE を経由してESP-WROOM-02 と USBシリアルを接続するテストプログラムです。[ Serial test. Connect the ESP-WROOM-02 serial to the USB serial via SPRESENSE. ] -------------------------------------------------------------------------------- /PCA9632DP1_breakout/mbed/Test_PCA9632DP1/PCA9632DP1.h: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** PCA9632DP1.h ** 3 | ** ** 4 | ** Created : 2015/07/31 16:59:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | /*--------------------------------------------------- 9 | Constant value 10 | */ 11 | const int addr = 0xC4; // define the I2C Address 12 | 13 | /*--------------------------------------------------- 14 | Register Address 15 | */ 16 | // Control registers 17 | #define MODE1 0x00 18 | #define MODE2 0x01 19 | #define PPWM0 0x02 20 | #define PPWM1 0x03 21 | #define PPWM2 0x04 22 | #define PPWM3 0x05 23 | #define GRPPWM 0x06 24 | #define GRPFREQ 0x07 25 | #define LEDOUT 0x08 26 | #define SUBADR1 0x09 27 | #define SUBADR2 0x0A 28 | #define SUBADR3 0x0B 29 | #define ALLCALLADR 0x0C 30 | -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/Readme.md: -------------------------------------------------------------------------------- 1 | # RealSense SDK 2.0 demo with Dlib and OpenCV 2 | 3 | ### What is this? 4 | 5 | * This is the sample program for RealSense SDK 2.0 with linking Dlib and OpenCV. 6 | * Getting Depth and Color image stream from RealSense devices, detecting faces by Dlib and showing image processing result. 7 | 8 | ### Expected results 9 | 10 | ![](./realsense-project-demo1.png) 11 | 12 | * Green lines are the feature point of faces which used in Dlib face-detector. 13 | * RealSense device measure the length between camera and face, and delete the background of detected face. 14 | 15 | ### Dependency 16 | 17 | * [OpenCV](https://opencv.org/) 18 | * [Dlib](http://dlib.net/) 19 | * [RealSense SDK 2.0](https://github.com/IntelRealSense/librealsense) 20 | 21 | ### Related information 22 | 23 | * [Switch Science blog](http://mag.switch-science.com/) 24 | * [Intel RealSense Depth Camera D435 - スイッチサイエンス](https://www.switch-science.com/catalog/3633/) 25 | * [インテル® RealSense™ カメラ](https://www.intel.co.jp/content/www/jp/ja/support/products/85364/emerging-technologies/intel-realsense-technology/intel-realsense-cameras.html) 26 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/platform.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup platform */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2006-2013 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_PLATFORM_H 20 | #define MBED_PLATFORM_H 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | #include "platform/mbed_retarget.h" 28 | #include "platform/mbed_toolchain.h" 29 | #include "device.h" 30 | #include "PinNames.h" 31 | #include "PeripheralNames.h" 32 | 33 | #endif 34 | 35 | /** @}*/ 36 | -------------------------------------------------------------------------------- /9599_ADS7028_SPI_12bit_1M_x8_ADC_Module/Python/ads7028_simple_read.py: -------------------------------------------------------------------------------- 1 | import spidev 2 | import struct 3 | from time import sleep, time 4 | from collections import deque 5 | 6 | spi = spidev.SpiDev() 7 | spi.open(0,0) 8 | spi.max_speed_hz = 16000000 9 | spi.mode = 0 10 | 11 | # OPMODE_CFG CONV_MODE = 0 Manual Mode 12 | spi.xfer2([0x08, 0x04, 0x00]) 13 | 14 | # SEQUENCE_CFG SEQ_MODE = 2 On-the-fly sequence mode 15 | spi.xfer2([0x08, 0x10, 0x02]) 16 | 17 | # DATA_CFG APPEND_STATUS = 1 4-bit channel ID is appended to ADC data. 18 | spi.xfer2([0x08, 0x02, 0x10]) 19 | 20 | # 読み込むチャンネル 21 | chs = deque() 22 | chs.append(0) 23 | chs.append(1) 24 | chs.append(2) 25 | chs.append(3) 26 | chs.append(4) 27 | chs.append(5) 28 | chs.append(6) 29 | chs.append(7) 30 | 31 | # 最初の入力チャネル設定 32 | spi.xfer2([0x80 | (chs[0] << 3), 0]) 33 | 34 | # 設定したチャンネルを末尾に移動 35 | chs.rotate(-1) 36 | 37 | try: 38 | while True: 39 | data = [] 40 | for ch in chs: 41 | data.extend(spi.xfer2([0x80 | (ch << 3), 0])) 42 | print(*[h[0] >> 4 for h in struct.iter_unpack('>H', bytes(data))],sep=',') 43 | except: 44 | pass 45 | 46 | spi.close() 47 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Switch Science 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /9560_Picossci_NTSC/lib/Picossci_NTSC/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Switch Science 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /10031_Conta_Lever_and_Push_Switch_Module/events/events.ino: -------------------------------------------------------------------------------- 1 | #include "LeverAndPushSw.h" 2 | 3 | LeverAndPushSw leverPushSw(A2); 4 | 5 | void setup() { 6 | Serial.begin(115200); 7 | } 8 | 9 | void loop() { 10 | leverPushSw.update(); 11 | LeverAndPushSw::Event event = leverPushSw.getEvent(); 12 | 13 | if (event != LeverAndPushSw::NONE) { 14 | LeverAndPushSw::State state = leverPushSw.getState(); 15 | switch (state) { 16 | case LeverAndPushSw::PUSH: 17 | Serial.print("PUSH "); 18 | break; 19 | case LeverAndPushSw::LEVER_CCW: 20 | Serial.print("CCW "); 21 | break; 22 | case LeverAndPushSw::LEVER_CW: 23 | Serial.print("CW "); 24 | break; 25 | default: 26 | break; 27 | } 28 | Serial.print("Event: "); 29 | switch (event) { 30 | case LeverAndPushSw::PRESSED: 31 | Serial.println("Pressed"); 32 | break; 33 | case LeverAndPushSw::RELEASED: 34 | Serial.println("Released"); 35 | break; 36 | case LeverAndPushSw::HELD: 37 | Serial.println("Held"); 38 | break; 39 | default: 40 | break; 41 | } 42 | } 43 | 44 | delay(20); 45 | } 46 | -------------------------------------------------------------------------------- /9599_ADS7028_SPI_12bit_1M_x8_ADC_Module/Arduino/ads7028_sampling_max/ads7028_sampling_max.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void writeReg(uint8_t reg, uint8_t value) { 4 | uint8_t data[] = { 0x08, reg, value }; 5 | SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE0)); 6 | SPI.transfer(data, 3); 7 | SPI.endTransaction(); 8 | } 9 | 10 | void setup() { 11 | // put your setup code here, to run once: 12 | Serial.begin(2000000); 13 | 14 | SPI.begin(18, 38, 23, 25); 15 | SPI.setHwCs(true); 16 | 17 | // OPMODE_CFG CONV_MODE = 0 Manual Mode 18 | writeReg(0x04, 0x00); 19 | 20 | // SEQUENCE_CFG SEQ_MODE = 2 On-the-fly sequence mode 21 | writeReg(0x10, 0x02); 22 | 23 | // DATA_CFG APPEND_STATUS = 1 4-bit channel ID is appended to ADC data. 24 | writeReg(0x02, 0x10); 25 | 26 | // 転送開始 27 | SPI.beginTransaction(SPISettings(20000000, MSBFIRST, SPI_MODE0)); 28 | // ダミーリード 29 | SPI.transfer16(0x8000); 30 | } 31 | 32 | void loop() { 33 | #define BUFLEN 16 34 | uint16_t buf[BUFLEN]; 35 | for (int i = 0; i < BUFLEN; i++) { 36 | buf[i] = SPI.transfer16(0x8000); // AIN0 37 | } 38 | for (int i = 0; i < BUFLEN; i++) { 39 | Serial.println(buf[i] >> 4); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /10373_STM32G4_Dev_Board/analog_internal/analog_internal.ino: -------------------------------------------------------------------------------- 1 | #define TS_CAL1 (*((uint16_t*)0x1FFF75A8)) // 3.0V 30℃時のADC値 2 | #define TS_CAL2 (*((uint16_t*)0x1FFF75CA)) // 3.0V 130℃時のADC値 3 | #define VREFINT (*((uint16_t*)0x1FFF75AA)) // 3.0V VREFINTのADC値 4 | 5 | void setup() { 6 | Serial.begin(115200); 7 | analogReadResolution(12); 8 | } 9 | 10 | void loop() { 11 | uint32_t startTime = millis(); 12 | uint32_t sum_temp = 0; 13 | uint32_t sum_vref = 0; 14 | uint16_t count = 0; 15 | 16 | while (millis() - startTime < 1000) { 17 | sum_temp += analogRead(ATEMP); 18 | sum_vref += analogRead(AVREF); 19 | count++; 20 | } 21 | 22 | uint16_t raw_temp = sum_temp / count; 23 | uint16_t raw_vref = sum_vref / count; 24 | 25 | // 実際のVDDAを算出(VREFINTは3.0V時の値) 26 | float vdda = 3.0 * ((float)VREFINT / (float)raw_vref); 27 | Serial.print("VDDA: "); 28 | Serial.print(vdda, 3); 29 | Serial.print("V "); 30 | 31 | // 補正後の温度値を算出(TS_CAL1/TS_CAL2の値は3.0V時の値) 32 | float temperature = ((float)((raw_temp * vdda) / 3.0) - TS_CAL1) * (130.0 - 30.0) / (TS_CAL2 - TS_CAL1) + 30.0; 33 | 34 | Serial.print("Temperature: "); 35 | Serial.print(temperature, 2); 36 | Serial.println(" °C"); 37 | } 38 | -------------------------------------------------------------------------------- /Rapiro/Rapiro_Genuino101_BLE/README.md: -------------------------------------------------------------------------------- 1 | Genuino101を使ってBLE経由でRapiroを制御してみる 2 | ==== 3 | Genuino101 の Bluetooth Low Energy 機能にスマートフォンなどからアクセスしてSerialに二足歩行ロボットRapiro用の制御コマンドを流す 4 | 5 | 使い方 6 | ---- 7 | 8 | + `Rapiro_Genuino101_BLE.ino`をGenuino101に書き込む 9 | 10 | + Genuino101とRapiroを接続する 11 | 12 | + VCC,GND,TX,RX <-> VCC,GND,RX,TX 13 | 14 | + スマートフォンなどからGenuino101に接続する 15 | + Bluetoothデバイス名は`Genuino101-(数値)`や`Rapiro`となっているはずです 16 | 17 | + `UART Service service 1 tx`キャラクタリスティックに書き込んだ値によってRapiroが動作する 18 | + (例)`S`を送るとRapiroに`#M0`が送られる 19 | 20 | 対応サービス 21 | ---- 22 | 23 | + NORDIC UART/Serial 24 | 25 | + [Documents(old)](https://devzone.nordicsemi.com/documentation/nrf51/6.0.0/s110/html/a00066.html) 26 | 27 | + [Documents(latest)](http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fble_sdk_app_nus_eval.html&cp=4_0_0_4_2_2_18) 28 | 29 | 対応アプリ例 30 | ---- 31 | 32 | + [Nordic Mobile Apps](https://www.nordicsemi.com/eng/Products/Nordic-mobile-Apps/nRF-Toolbox-App) 33 | 34 | 関連情報 35 | ---- 36 | 37 | 1. [スイッチサイエンスマガジン](http://mag.switch-science.com/) 38 | 39 | 2. [Genuino101](https://www.switch-science.com/catalog/2670/) 40 | 41 | 3. [Rapiro](https://www.switch-science.com/catalog/1550/) 42 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/hal/buffer.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup hal */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2014-2015 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_BUFFER_H 20 | #define MBED_BUFFER_H 21 | 22 | #include 23 | 24 | /** Generic buffer structure 25 | */ 26 | typedef struct buffer_s { 27 | void *buffer; /**< the pointer to a buffer */ 28 | size_t length; /**< the buffer length */ 29 | size_t pos; /**< actual buffer position */ 30 | uint8_t width; /**< The buffer unit width (8, 16, 32, 64), used for proper *buffer casting */ 31 | } buffer_t; 32 | 33 | #endif 34 | 35 | /** @}*/ 36 | -------------------------------------------------------------------------------- /Conta/3587_PAC1710_module/PAC1710_module/PAC1710.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // PAC1_710 4 | namespace PAC1710{ 5 | enum ADDR{ 6 | R430 = 0x48, 7 | R560, 8 | R750, 9 | R1270, 10 | R0, 11 | R100, 12 | R180, 13 | R300, 14 | R1600 = 0x28, 15 | R2000, 16 | R2700, 17 | R3600, 18 | R5600, 19 | R9100, 20 | R20000, 21 | OPEN = 0x18 22 | }; 23 | enum REG{ 24 | CONFIG = 0x00, 25 | CONVRATE, 26 | ONESHOT, 27 | CHMASKREG, 28 | HLSTAT, 29 | LLSTAT, 30 | VSO_CFG = 0x0A, 31 | C1_VSAMP_CFG, 32 | C2_VSAMP_CFG, 33 | C1_SVRES_H = 0x0D, 34 | C1_SVRES_L, 35 | C2_SVRES_H, 36 | C2_SVRES_L, 37 | C1_VVRES_H = 0x11, 38 | C1_VVRES_L, 39 | C2_VVRES_H, 40 | C2_VVRES_L, 41 | C1_PR_H = 0x15, 42 | C1_PR_L, 43 | C2_PR_H, 44 | C2_PR_L, 45 | C1_SVLIM_H = 0x19, 46 | C2_SVLIM_H, 47 | C1_SVLIM_L, 48 | C2_SVLIM_L, 49 | C1_VVLIM_H = 0x1D, 50 | C2_VVLIM_H, 51 | C1_VVLIM_L, 52 | C2_VVLIM_L, 53 | PID = 0xFD, 54 | MID, 55 | REV 56 | }; 57 | } -------------------------------------------------------------------------------- /PCF2129AT_breakout/mbed/Test_PCF2129AT/PCF2129AT.h: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** PCF2129AT.h ** 3 | ** ** 4 | ** Created : 2015/07/14 11:31:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | /*--------------------------------------------------- 9 | Constant value 10 | */ 11 | const int addr = 0xA2; // define the I2C Address 12 | 13 | /*--------------------------------------------------- 14 | Register Address 15 | */ 16 | // Control registers 17 | #define Control1 0x00 18 | #define Control2 0x01 19 | #define Control3 0x02 20 | // Time and date registers 21 | #define Seconds 0x03 22 | #define Minutes 0x04 23 | #define Hours 0x05 24 | #define Days 0x06 25 | #define Weekdays 0x07 26 | #define Months 0x08 27 | #define Years 0x09 28 | 29 | /*--------------------------------------------------- 30 | struct 31 | */ 32 | typedef struct 33 | { 34 | char s; 35 | char m; 36 | char h; 37 | char d; 38 | char wd; 39 | char mm; 40 | char y; 41 | } dt_dat; 42 | -------------------------------------------------------------------------------- /ESPr-IR/ESPrIR_sender/README.md: -------------------------------------------------------------------------------- 1 | ESPr IR 赤外線リモコン データ送信機 2 | ==== 3 | 赤外線リモコンから任意のデータを送信する 4 | 5 | 使い方 6 | ---- 7 | 8 | + 送信用データの用意 9 | + (例) 10 | + https://github.com/SWITCHSCIENCE/samplecodes/blob/master/ESPr-IR/ESPrIR_sender/ESPrIR_sender.ino#L1 11 | + https://github.com/SWITCHSCIENCE/samplecodes/blob/master/ESPr-IR/ESPrIR_sender/ESPrIR_sender.ino#L7 12 | 13 | + POSTされたデータに対応するハンドラの登録 14 | + (例) 15 | + https://github.com/SWITCHSCIENCE/samplecodes/blob/master/ESPr-IR/ESPrIR_sender/ESPrIR_sender.ino#L72 16 | + https://github.com/SWITCHSCIENCE/samplecodes/blob/master/ESPr-IR/ESPrIR_sender/ESPrIR_sender.ino#L76 17 | 18 | + ブラウザに表示されるformタグにボタンを追加 19 | + (例) 20 | + https://github.com/SWITCHSCIENCE/samplecodes/blob/master/ESPr-IR/ESPrIR_sender/ESPrIR_sender.ino#L93 21 | + https://github.com/SWITCHSCIENCE/samplecodes/blob/master/ESPr-IR/ESPrIR_sender/ESPrIR_sender.ino#L94 22 | 23 | 送信用データの準備 24 | ---- 25 | 26 | + [ESPr IR dumper](https://github.com/SWITCHSCIENCE/samplecodes/tree/master/ESPr-IR/ESPrIR_dumper)を参照 27 | 28 | 29 | 関連情報 30 | ---- 31 | 32 | 1. [ESPr IR 赤外線リモコン](https://www.switch-science.com/catalog/2740/) 33 | 34 | 2. [スイッチサイエンスマガジン](http://mag.switch-science.com/) 35 | 36 | 3. [ESPr IR dumper](https://github.com/SWITCHSCIENCE/samplecodes/tree/master/ESPr-IR/ESPrIR_dumper) -------------------------------------------------------------------------------- /9560_Picossci_NTSC/platformio.ini: -------------------------------------------------------------------------------- 1 | 2 | [env] 3 | monitor_speed = 115200 4 | framework = arduino 5 | 6 | 7 | [earlephilhower] 8 | platform = https://github.com/maxgerhardt/platform-raspberrypi.git 9 | board_build.core = earlephilhower 10 | board = pico 11 | build_type = release 12 | build_flags = -O2 13 | 14 | [mbed] 15 | platform = raspberrypi 16 | board = pico 17 | build_type = release 18 | build_flags = -O2 19 | 20 | 21 | [env:HowToUse_with_earlephilhower] 22 | extends = earlephilhower 23 | build_src_filter = +<*> -<.git/> -<.svn/> +<../lib/Picossci_NTSC/examples/HowToUse> 24 | 25 | [env:HowToUse_with_mbed] 26 | extends = mbed 27 | build_src_filter = +<*> -<.git/> -<.svn/> +<../lib/Picossci_NTSC/examples/HowToUse> 28 | 29 | 30 | 31 | [env:UseLovyanGFX_with_earlephilhower] 32 | extends = earlephilhower 33 | build_src_filter = +<*> -<.git/> -<.svn/> +<../lib/Picossci_NTSC/examples/UseLovyanGFX> 34 | lib_deps = LovyanGFX 35 | 36 | [env:UseLovyanGFX_with_mbed] 37 | extends = mbed 38 | build_src_filter = +<*> -<.git/> -<.svn/> +<../lib/Picossci_NTSC/examples/UseLovyanGFX> 39 | lib_deps = LovyanGFX 40 | 41 | 42 | 43 | [env:NoLibrarySample_with_earlephilhower] 44 | extends = earlephilhower 45 | build_src_filter = +<*> -<.git/> -<.svn/> +<../lib/Picossci_NTSC/examples/NoLibrarySample> 46 | -------------------------------------------------------------------------------- /PCA9624PW_breakout/mbed/Test_PCA9624PW/PCA9624PW.h: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** PCA9624PW.h ** 3 | ** ** 4 | ** Created : 2015/09/18 14:23:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | /*--------------------------------------------------- 9 | Constant value 10 | */ 11 | const int PCA9624PW_addr = 0xC0; // define the I2C Address 12 | 13 | /*--------------------------------------------------- 14 | PCA9624PW Register Address 15 | */ 16 | // Control registers 17 | #define MODE1 0x00 18 | #define MODE2 0x01 19 | #define PPWM0 0x02 20 | #define PPWM1 0x03 21 | #define PPWM2 0x04 22 | #define PPWM3 0x05 23 | #define PPWM4 0x06 24 | #define PPWM5 0x07 25 | #define PPWM6 0x08 26 | #define PPWM7 0x09 27 | #define GRPPWM 0x0A 28 | #define GRPFREQ 0x0B 29 | #define LEDOUT0 0x0C 30 | #define LEDOUT1 0x0D 31 | #define SUBADR1 0x0E 32 | #define SUBADR2 0x0F 33 | #define SUBADR3 0x10 34 | #define ALLCALLADR 0x11 35 | -------------------------------------------------------------------------------- /9877_DRV8311H_BLDC_Motor_Driver_Module/README.md: -------------------------------------------------------------------------------- 1 | ## サンプルコード for スイッチサイエンスDRV8311H搭載3相ブラシレスモータードライバモジュール 2 | 3 | オープンソースのフィールド指向制御(FOC)ライブラリ[Simple FOC](https://docs.simplefoc.com/)を使った[スイッチサイエンスDRV8311H搭載3相ブラシレスモータードライバモジュール](https://www.switch-science.com/products/9877)のサンプルコードです。 4 | 5 | - open_loop_velocity_example 6 | - オープンループ(位置センサーを使わない)の速度制御サンプルです。 7 | - シリアルコンソールから速度指示を行い任意の速度(ラジアン/秒)でブラシレスモーターを回転させます。 8 | - open_loop_position_example 9 | - オープンループ(位置センサーを使わない)の位置制御サンプルです。 10 | - シリアルコンソールから位置指示を行い任意の位置(ラジアン)にブラシレスモーターを回転させます。 11 | - 1回転は2 * PIラジアンです。 12 | - current_sense_low_side 13 | - DRV8311Hに内蔵された電流センサを使用して、ブラシレスモーター各相の電流をシリアルプロッターにプロットします。 14 | - full_control_serial 15 | - [磁気角度センサ(MA735)](https://www.switch-science.com/products/9826)と電流センサを使用したフルモーションコントロールのサンプルです。 16 | - シリアルコンソールからコマンド指示で自由にブラシレスモーターを制御できます。 17 | - コマンドの仕様は[こちら](https://docs.simplefoc.com/commander_motor)を参照してください。 18 | 19 | ### 動作確認環境 20 | 21 | - [スイッチサイエンスDRV8311H搭載3相ブラシレスモータードライバモジュール](https://www.switch-science.com/products/9877) 22 | - [スイッチサイエンスMA735搭載デジタル磁気角度センサモジュール(ABZ/PWM出力付き)](https://www.switch-science.com/products/9826) 23 | - [ESPr Developer S3](https://www.switch-science.com/products/8514) 24 | - [ジンバルモーター](https://www.amazon.co.jp/dp/B089SYW5W3) 25 | - Arduino IDE 2.3.2 26 | - arduino-esp32 v3.0.4 27 | - Simple FOC v2.3.4 28 | -------------------------------------------------------------------------------- /ESP-WROOM-02/ESPWiFi_SD_Logger/SDlogger.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SDlogger.cpp 3 | read/write data from/into SD card 4 | original file: SD/Datalogger.ino, public domain 5 | edited by Switch Science https://www.switch-science.com/ 6 | */ 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #include "SDlogger.h" 13 | 14 | const int chipSelect = 15; 15 | 16 | bool SDlogger::init() 17 | { 18 | 19 | Serial.print("Initializing SD card..."); 20 | 21 | // see if the card is present and can be initialized: 22 | if (!SD.begin(chipSelect)) { 23 | Serial.println("Card failed, or not present"); 24 | // don't do anything more: 25 | return false; 26 | } 27 | Serial.println("card initialized."); 28 | return true; 29 | } 30 | 31 | void SDlogger::recordData(String fileName, String dataStream) 32 | { 33 | // open the file. note that only one file can be open at a time, 34 | // so you have to close this one before opening another. 35 | File dataFile = SD.open(fileName, FILE_WRITE); 36 | 37 | // if the file is available, write to it: 38 | if (dataFile) { 39 | dataFile.println(dataStream); 40 | dataFile.close(); 41 | // print to the serial port too: 42 | Serial.println(dataStream); 43 | } 44 | // if the file isn't open, pop up an error: 45 | else { 46 | Serial.println("error opening file"); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/hal/dma_api.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup hal */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2014-2015 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_DMA_API_H 20 | #define MBED_DMA_API_H 21 | 22 | #include 23 | 24 | #define DMA_ERROR_OUT_OF_CHANNELS (-1) 25 | 26 | typedef enum { 27 | DMA_USAGE_NEVER, 28 | DMA_USAGE_OPPORTUNISTIC, 29 | DMA_USAGE_ALWAYS, 30 | DMA_USAGE_TEMPORARY_ALLOCATED, 31 | DMA_USAGE_ALLOCATED 32 | } DMAUsage; 33 | 34 | #ifdef __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | void dma_init(void); 39 | 40 | int dma_channel_allocate(uint32_t capabilities); 41 | 42 | int dma_channel_free(int channelid); 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | #endif 49 | 50 | /** @}*/ 51 | -------------------------------------------------------------------------------- /9599_ADS7028_SPI_12bit_1M_x8_ADC_Module/Arduino/ads7028_simple_read/ads7028_simple_read.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | uint8_t spi_mode = SPI_MODE0; 4 | 5 | void writeReg(uint8_t reg, uint8_t value) { 6 | uint8_t data[] = { 0x08, reg, value }; 7 | SPI.beginTransaction(SPISettings(1000000, MSBFIRST, spi_mode)); 8 | SPI.transfer(data, 3); 9 | SPI.endTransaction(); 10 | } 11 | 12 | uint16_t channel = 0; 13 | 14 | void setup() { 15 | 16 | // put your setup code here, to run once: 17 | Serial.begin(2000000); 18 | 19 | #ifdef ARDUINO_m5stack_core2 20 | SPI.begin(27, 26, 19, 25); // SCK MISO MOSI SS 21 | #else 22 | SPI.begin(12, 13, 11, 10); 23 | #endif 24 | SPI.setHwCs(true); 25 | 26 | // OPMODE_CFG CONV_MODE = 0 Manual Mode 27 | writeReg(0x04, 0x00); 28 | 29 | // SEQUENCE_CFG SEQ_MODE = 2 On-the-fly sequence mode 30 | writeReg(0x10, 0x02); 31 | 32 | // DATA_CFG 33 | // APPEND_STATUS = 1b 4-bit channel ID is appended to ADC data. 34 | // CPOL_CPHA = 11b = CPOL = 1, CPHA = 1 35 | writeReg(0x02, 0x13); 36 | spi_mode = SPI_MODE3; 37 | 38 | // 転送開始 39 | SPI.beginTransaction(SPISettings(20000000, MSBFIRST, spi_mode)); 40 | 41 | // 空読みと次のチャンネル設定 42 | SPI.transfer16(0x8000 | (channel << 11)); 43 | } 44 | 45 | void loop() { 46 | uint16_t rd = SPI.transfer16(0x8000 | (channel << 11)); // AD値の読みと次のチャンネル設定 47 | Serial.println(rd >> 4); 48 | } 49 | -------------------------------------------------------------------------------- /TJA1040_CAN_Tranciver_board/MBED/mbed.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2011 ARM Limited. All rights reserved. 3 | */ 4 | 5 | #ifndef MBED_H 6 | #define MBED_H 7 | 8 | #define MBED_LIBRARY_VERSION 29 9 | 10 | // Useful C libraries 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | // mbed Debug libraries 18 | 19 | #include "error.h" 20 | #include "mbed_interface.h" 21 | 22 | // mbed Peripheral components 23 | 24 | #include "DigitalIn.h" 25 | #include "DigitalOut.h" 26 | #include "DigitalInOut.h" 27 | #include "BusIn.h" 28 | #include "BusOut.h" 29 | #include "BusInOut.h" 30 | #include "PortIn.h" 31 | #include "PortInOut.h" 32 | #include "PortOut.h" 33 | #include "AnalogIn.h" 34 | #include "AnalogOut.h" 35 | #include "PwmOut.h" 36 | #include "Serial.h" 37 | #include "SerialHalfDuplex.h" 38 | #include "SPI.h" 39 | #include "SPISlave.h" 40 | #include "SPIHalfDuplex.h" 41 | #include "I2C.h" 42 | #include "I2CSlave.h" 43 | #include "Ethernet.h" 44 | #include "CAN.h" 45 | 46 | // mbed Internal components 47 | #include "Timer.h" 48 | #include "Ticker.h" 49 | #include "Timeout.h" 50 | #include "LocalFileSystem.h" 51 | #include "InterruptIn.h" 52 | #include "wait_api.h" 53 | #include "rtc_time.h" 54 | 55 | using namespace mbed; 56 | using namespace std; 57 | 58 | #endif 59 | 60 | -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/rs-dlib-cv/rs-dlib-cv.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | ヘッダー ファイル 20 | 21 | 22 | ヘッダー ファイル 23 | 24 | 25 | 26 | 27 | ソース ファイル 28 | 29 | 30 | ソース ファイル 31 | 32 | 33 | -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_I2C_MUX/README.md: -------------------------------------------------------------------------------- 1 | # ESPr® Developer 32 向けI2C通信サンプルスケッチ 2 | 3 | ESPr Developer 32上でI2C通信をするサンプルスケッチ。ピンマトリクス機能を使うことでブレッドボード上での配線で完結します。 4 | 5 | ![全体の様子](board.jpg) 6 | 7 | 使い方 8 | ---- 9 | 10 | + 本スケッチを書き込む 11 | 12 | + 一度書き込んだあとに以下のように液晶と[BME280搭載 温湿度・気圧センサモジュール](https://www.switch-science.com/catalog/2236/)を接続する 13 | ![配線図](connect.jpg) 14 | + 一度ピン設定を書き込まない場合、液晶モジュールに逆電圧がかかり破損の可能性があります 15 | 16 | + 開発ボードをリセットする 17 | 18 | 説明 19 | ---- 20 | 21 | ESP32にはIOマトリクス機能という、SPIやI2C通信用のピンを自由に設定できる機能があります。本スケッチは、そのマトリックス機能を利用して、I2C通信を任意のピンにリマップすることで、ジャンパワイヤなしに温度センサーとの通信を行うというデモです。 22 | 23 | 動作例: 24 | ``` 25 | ///// 26 | TEMP : 31.74 DegC 27 | PRESS : 998.35 hPa 28 | HUM : 39.47 29 | ///// 30 | TEMP : 31.74 DegC 31 | PRESS : 998.35 hPa 32 | HUM : 39.28 33 | ///// 34 | TEMP : 31.75 DegC 35 | PRESS : 998.41 hPa 36 | HUM : 39.24 37 | ///// 38 | TEMP : 31.74 DegC 39 | PRESS : 998.41 hPa 40 | HUM : 39.42 41 | ///// 42 | TEMP : 31.74 DegC 43 | PRESS : 998.38 hPa 44 | HUM : 39.47 45 | ``` 46 | 47 | 注意: デバッグログの出力設定であるGPIO15をGNDとして使うため、シリアルにデバッグログが流れなくなります。 48 | 49 | 関連情報 50 | ---- 51 | 52 | 1. [ESP-WROOM-32に関するTIPS](http://trac.switch-science.com/wiki/esp32_tips) 53 | 54 | 2. [ESPr® Developer 32](https://www.switch-science.com/catalog/3210/) 55 | 56 | 3. [BME280搭載 温湿度・気圧センサモジュール](https://www.switch-science.com/catalog/2236/) -------------------------------------------------------------------------------- /9826_MA735_Digital_Angle_Sensor_Module/ma735_simple_read_kalman/ma735_simple_read_kalman.ino: -------------------------------------------------------------------------------- 1 | // use SimpleKalmanFilter 2 | 3 | #include 4 | #include 5 | 6 | const int MA735_CS = SS; 7 | SPISettings settings = SPISettings(10000000, MSBFIRST, SPI_MODE0); 8 | 9 | // e_mea: 測定の不確かさ - 測定値がどれくらい変動するかを表します(ほとんどの場合、標準偏差の値をいれとけばOK)。 10 | // e_est: 推定の不確かさ - カルマンフィルタがこの値を調整するため、初期値として e_mea と同じ値を使用できます。 11 | // q: プロセスの分散 - 通常は 0.001 から 1 の間の小さな値で、測定値がどれくらい早く変動するかを表します。 12 | // 推奨値は 0.01 です。用途に応じて調整する必要があります(動きが早い場合は大きく、遅い場合は小さくしてください)。 13 | 14 | SimpleKalmanFilter kF(21 /*e_mea*/, 21/*e_est*/, 0.1/*q*/); 15 | 16 | void setup() { 17 | // put your setup code here, to run once: 18 | Serial.begin(115200); 19 | SPI.begin(); 20 | pinMode(MA735_CS, OUTPUT); 21 | digitalWrite(MA735_CS, HIGH); 22 | } 23 | 24 | void loop() { 25 | uint16_t rd = readAngle(); 26 | if (rd >= 32768) rd = 32768 - (rd - 32768); // 連続値に変換 27 | uint16_t kd = kF.updateEstimate(rd); // カルマンフィルターを通す 28 | Serial.print(micros()); 29 | Serial.print(','); 30 | Serial.print(kd); 31 | Serial.print(','); 32 | Serial.println(rd); 33 | delay(20); 34 | } 35 | 36 | uint16_t readAngle() { 37 | SPI.beginTransaction(settings); 38 | digitalWrite(MA735_CS, LOW); 39 | uint16_t rd = SPI.transfer16(0); // 角度の読み込み 40 | digitalWrite(MA735_CS, HIGH); 41 | SPI.endTransaction(); 42 | return rd; 43 | } 44 | -------------------------------------------------------------------------------- /M5Stack/MLX9060_M5/colors.h: -------------------------------------------------------------------------------- 1 | uint16_t colors[]= {0x0002, 2 | 0x0005, 3 | 0x0007, 4 | 0x0009, 5 | 0x000C, 6 | 0x000E, 7 | 0x0010, 8 | 0x0012, 9 | 0x0014, 10 | 0x0016, 11 | 0x0018, 12 | 0x0019, 13 | 0x001B, 14 | 0x001C, 15 | 0x001D, 16 | 0x001E, 17 | 0x001F, 18 | 0x001F, 19 | 0x001F, 20 | 0x001F, 21 | 0x009F, 22 | 0x011F, 23 | 0x019F, 24 | 0x01FE, 25 | 0x027D, 26 | 0x02FC, 27 | 0x037B, 28 | 0x03D9, 29 | 0x0458, 30 | 0x04B6, 31 | 0x0514, 32 | 0x0572, 33 | 0x05D0, 34 | 0x062E, 35 | 0x066C, 36 | 0x06A9, 37 | 0x06E7, 38 | 0x0725, 39 | 0x0762, 40 | 0x0780, 41 | 0x17A0, 42 | 0x27C0, 43 | 0x37E0, 44 | 0x3FE0, 45 | 0x4FE0, 46 | 0x5FE0, 47 | 0x6FE0, 48 | 0x7FE0, 49 | 0x8FE0, 50 | 0x97E0, 51 | 0xA7E0, 52 | 0xAFE0, 53 | 0xBFE0, 54 | 0xC7E0, 55 | 0xCFE0, 56 | 0xD7E0, 57 | 0xDFE0, 58 | 0xE7C0, 59 | 0xEFA0, 60 | 0xF780, 61 | 0xF760, 62 | 0xFF20, 63 | 0xFEE0, 64 | 0xFEA0, 65 | 0xFE60, 66 | 0xFE20, 67 | 0xFDC0, 68 | 0xFD60, 69 | 0xFD00, 70 | 0xFCA0, 71 | 0xFC40, 72 | 0xFBC0, 73 | 0xFB60, 74 | 0xFAE0, 75 | 0xFA60, 76 | 0xF9E0, 77 | 0xF980, 78 | 0xF900, 79 | 0xF880, 80 | 0xF8C0, 81 | 0xF923, 82 | 0xF984, 83 | 0xFA06, 84 | 0xF268, 85 | 0xF2C9, 86 | 0xEB2B, 87 | 0xE38C, 88 | 0xDC0E, 89 | 0xD470, 90 | 0xCCD1, 91 | 0xD533, 92 | 0xDD94, 93 | 0xE5F6, 94 | 0xEE77, 95 | 0xF6D9, 96 | 0xF73B, 97 | 0xFF9C, 98 | 0xFFFE, 99 | 0xFFFE, 100 | 0xFFFF}; 101 | 102 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/drivers/LowPowerTimer.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTIMER_H 17 | #define MBED_LOWPOWERTIMER_H 18 | 19 | #include "platform/platform.h" 20 | #include "drivers/Timer.h" 21 | #include "platform/NonCopyable.h" 22 | 23 | #if defined (DEVICE_LOWPOWERTIMER) || defined(DOXYGEN_ONLY) 24 | 25 | #include "hal/lp_ticker_api.h" 26 | 27 | namespace mbed { 28 | /** \addtogroup drivers */ 29 | 30 | /** Low power timer 31 | * 32 | * @note Synchronization level: Interrupt safe 33 | * @ingroup drivers 34 | */ 35 | class LowPowerTimer : public Timer, private NonCopyable { 36 | 37 | public: 38 | LowPowerTimer() : Timer(get_lp_ticker_data()) { 39 | } 40 | 41 | }; 42 | 43 | } // namespace mbed 44 | 45 | #endif 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /PCA9624PW_breakout/mbed/Test_PCA9624PW_2/PCA9624PW.h: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** PCA9624PW.h ** 3 | ** ** 4 | ** Created : 2015/09/18 17:23:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | /*--------------------------------------------------- 9 | Constant value 10 | */ 11 | const int PCA9624PW_1_addr = 0xC0; // define the I2C Slave 1 Address 12 | const int PCA9624PW_2_addr = 0xC2; // define the I2C Slave 2 Address 13 | 14 | /*--------------------------------------------------- 15 | PCA9624PW Register Address 16 | */ 17 | // Control registers 18 | #define MODE1 0x00 19 | #define MODE2 0x01 20 | #define PPWM0 0x02 21 | #define PPWM1 0x03 22 | #define PPWM2 0x04 23 | #define PPWM3 0x05 24 | #define PPWM4 0x06 25 | #define PPWM5 0x07 26 | #define PPWM6 0x08 27 | #define PPWM7 0x09 28 | #define GRPPWM 0x0A 29 | #define GRPFREQ 0x0B 30 | #define LEDOUT0 0x0C 31 | #define LEDOUT1 0x0D 32 | #define SUBADR1 0x0E 33 | #define SUBADR2 0x0F 34 | #define SUBADR3 0x10 35 | #define ALLCALLADR 0x11 36 | -------------------------------------------------------------------------------- /9826_MA735_Digital_Angle_Sensor_Module/ma735_encoder/ma735_encoder.ino: -------------------------------------------------------------------------------- 1 | // use SimpleFOC 2 | #include 3 | 4 | // A GPIO22 5 | // B GPIO20 6 | // Z GPIO23 7 | // Encoder encoder = Encoder(22, 20, 1024, 23); 8 | 9 | // A GPIO22 10 | // B GPIO20 11 | // Z not use 12 | Encoder encoder = Encoder(22, 20, 1024); 13 | 14 | // interrupt routine intialisation 15 | void doA() { 16 | encoder.handleA(); 17 | } 18 | void doB() { 19 | encoder.handleB(); 20 | } 21 | void doIndex() { 22 | encoder.handleIndex(); 23 | } 24 | 25 | void setup() { 26 | // monitoring port 27 | Serial.begin(115200); 28 | 29 | // enable/disable quadrature mode 30 | encoder.quadrature = Quadrature::ON; 31 | 32 | // check if you need internal pullups 33 | encoder.pullup = Pullup::USE_EXTERN; 34 | 35 | // initialise encoder hardware 36 | encoder.init(); 37 | 38 | // hardware interrupt enable 39 | encoder.enableInterrupts(doA, doB, doIndex); 40 | 41 | Serial.println("Encoder ready"); 42 | _delay(1000); 43 | } 44 | 45 | void loop() { 46 | // iterative function updating the sensor internal variables 47 | // it is usually called in motor.loopFOC() 48 | // not doing much for the encoder though 49 | encoder.update(); 50 | 51 | // display the angle and the angular velocity to the terminal 52 | Serial.print(encoder.getAngle(), 7); 53 | Serial.print("\t"); 54 | Serial.println(encoder.getVelocity(), 7); 55 | 56 | delay(20); 57 | } 58 | -------------------------------------------------------------------------------- /ESP-WROOM-02/ESPWiFi_SD_Logger/SDlogger.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | SDlogger.h 4 | read/write data from/into SD card 5 | original file: SD/Datalogger.ino, public domain 6 | edited by Switch Science https://www.switch-science.com/ 7 | */ 8 | //////////////////////////////////////////////////////////////////////////////// 9 | /* original header 10 | SD card datalogger 11 | 12 | This example shows how to log data from three analog sensors 13 | to an SD card using the SD library. 14 | 15 | The circuit: 16 | * analog sensors on analog ins 0, 1, and 2 17 | * SD card attached to SPI bus as follows: 18 | ** MOSI - pin 11 19 | ** MISO - pin 12 20 | ** CLK - pin 13 21 | ** CS - pin 4 22 | 23 | created 24 Nov 2010 24 | modified 9 Apr 2012 25 | by Tom Igoe 26 | 27 | This example code is in the public domain. 28 | */ 29 | /////////////////////////////////////////////////////////////////////////////// 30 | #pragma once 31 | #include 32 | #include 33 | #include 34 | 35 | class SDlogger 36 | { 37 | public: 38 | SDlogger() 39 | {} 40 | // @return false:Initialize failed 41 | bool init(); 42 | 43 | // @param (filename) name of file 44 | // @param (dataStream) data witch will be written 45 | void recordData(String fileName, String dataStream); 46 | 47 | private: 48 | }; 49 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/drivers/LowPowerTimeout.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTIMEOUT_H 17 | #define MBED_LOWPOWERTIMEOUT_H 18 | 19 | #include "platform/platform.h" 20 | 21 | #if defined (DEVICE_LOWPOWERTIMER) || defined(DOXYGEN_ONLY) 22 | 23 | #include "hal/lp_ticker_api.h" 24 | #include "drivers/LowPowerTicker.h" 25 | #include "platform/NonCopyable.h" 26 | 27 | namespace mbed { 28 | /** \addtogroup drivers */ 29 | 30 | /** Low Power Timout 31 | * 32 | * @note Synchronization level: Interrupt safe 33 | * @ingroup drivers 34 | */ 35 | class LowPowerTimeout : public LowPowerTicker, private NonCopyable { 36 | 37 | private: 38 | virtual void handler(void) { 39 | _function.call(); 40 | } 41 | }; 42 | 43 | } 44 | 45 | #endif 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/PlatformMutex.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup platform */ 3 | /* mbed Microcontroller Library 4 | * Copyright (c) 2006-2013 ARM Limited 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef PLATFORM_MUTEX_H 19 | #define PLATFORM_MUTEX_H 20 | 21 | #include "platform/NonCopyable.h" 22 | 23 | #ifdef MBED_CONF_RTOS_PRESENT 24 | #include "rtos/Mutex.h" 25 | typedef rtos::Mutex PlatformMutex; 26 | #else 27 | /** A stub mutex for when an RTOS is not present 28 | * @ingroup platform 29 | */ 30 | class PlatformMutex : private mbed::NonCopyable { 31 | public: 32 | PlatformMutex() { 33 | // Stub 34 | 35 | } 36 | ~PlatformMutex() { 37 | // Stub 38 | } 39 | 40 | void lock() { 41 | // Do nothing 42 | } 43 | 44 | void unlock() { 45 | // Do nothing 46 | } 47 | }; 48 | 49 | #endif 50 | 51 | #endif 52 | 53 | -------------------------------------------------------------------------------- /BME280/Arduino/libraries/SSCI_BME280/examples/ESP8266_BME280_sample.ino: -------------------------------------------------------------------------------- 1 | extern "C" { 2 | #include "user_interface.h" 3 | } 4 | #include 5 | #include 6 | 7 | SSCI_BME280 bme280; 8 | uint8_t i2c_addr = 0x76; //I2C Address 9 | 10 | void setup() 11 | { 12 | uint8_t osrs_t = 1; //Temperature oversampling x 1 13 | uint8_t osrs_p = 1; //Pressure oversampling x 1 14 | uint8_t osrs_h = 1; //Humidity oversampling x 1 15 | uint8_t bme280mode = 3; //Normal mode 16 | uint8_t t_sb = 5; //Tstandby 1000ms 17 | uint8_t filter = 0; //Filter off 18 | uint8_t spi3w_en = 0; //3-wire SPI Disable 19 | 20 | Serial.begin(115200); 21 | Wire.begin(); 22 | bme280.setMode(i2c_addr, osrs_t, osrs_p, osrs_h, bme280mode, t_sb, filter, spi3w_en); 23 | 24 | bme280.readTrim(); 25 | } 26 | 27 | 28 | void loop() 29 | { 30 | double temp_act, press_act, hum_act; //最終的に表示される値を入れる変数 31 | 32 | bme280.readData(&temp_act, &press_act, &hum_act); 33 | 34 | Serial.print("TEMP : "); 35 | Serial.print(temp_act); 36 | Serial.print(" DegC PRESS : "); 37 | Serial.print(press_act); 38 | Serial.print(" hPa HUM : "); 39 | Serial.print(hum_act); 40 | Serial.print(" % Light:"); 41 | Serial.print(1024 - readLight()); 42 | Serial.println(" "); 43 | 44 | delay(1000); 45 | } 46 | 47 | unsigned int readLight() 48 | { 49 | unsigned int light = system_adc_read(); 50 | return light; 51 | } -------------------------------------------------------------------------------- /ESPr_Developer/Env_sensor_shield/ESP_BME280_test/ESP_BME280_test.ino: -------------------------------------------------------------------------------- 1 | extern "C" { 2 | #include "user_interface.h" 3 | } 4 | #include 5 | #include 6 | 7 | SSCI_BME280 bme280; 8 | uint8_t i2c_addr = 0x76; //I2C Address 9 | 10 | void setup() 11 | { 12 | uint8_t osrs_t = 1; //Temperature oversampling x 1 13 | uint8_t osrs_p = 1; //Pressure oversampling x 1 14 | uint8_t osrs_h = 1; //Humidity oversampling x 1 15 | uint8_t bme280mode = 3; //Normal mode 16 | uint8_t t_sb = 5; //Tstandby 1000ms 17 | uint8_t filter = 0; //Filter off 18 | uint8_t spi3w_en = 0; //3-wire SPI Disable 19 | 20 | Serial.begin(115200); 21 | Wire.begin(); 22 | bme280.setMode(i2c_addr, osrs_t, osrs_p, osrs_h, bme280mode, t_sb, filter, spi3w_en); 23 | 24 | bme280.readTrim(); 25 | } 26 | 27 | 28 | void loop() 29 | { 30 | double temp_act, press_act, hum_act; //最終的に表示される値を入れる変数 31 | 32 | bme280.readData(&temp_act, &press_act, &hum_act); 33 | 34 | Serial.print("TEMP : "); 35 | Serial.print(temp_act); 36 | Serial.print(" DegC PRESS : "); 37 | Serial.print(press_act); 38 | Serial.print(" hPa HUM : "); 39 | Serial.print(hum_act); 40 | Serial.print(" % Light:"); 41 | Serial.print(1024 - readLight()); 42 | Serial.println(" "); 43 | 44 | delay(1000); 45 | } 46 | 47 | unsigned int readLight() 48 | { 49 | unsigned int light = system_adc_read(); 50 | return light; 51 | } 52 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/drivers/LowPowerTicker.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2015 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_LOWPOWERTICKER_H 17 | #define MBED_LOWPOWERTICKER_H 18 | 19 | #include "platform/platform.h" 20 | #include "drivers/Ticker.h" 21 | #include "platform/NonCopyable.h" 22 | 23 | #if defined (DEVICE_LOWPOWERTIMER) || defined(DOXYGEN_ONLY) 24 | 25 | #include "hal/lp_ticker_api.h" 26 | 27 | namespace mbed { 28 | /** \addtogroup drivers */ 29 | 30 | /** Low Power Ticker 31 | * 32 | * @note Synchronization level: Interrupt safe 33 | * @ingroup drivers 34 | */ 35 | class LowPowerTicker : public Ticker, private NonCopyable { 36 | 37 | public: 38 | LowPowerTicker() : Ticker(get_lp_ticker_data()) { 39 | } 40 | 41 | virtual ~LowPowerTicker() { 42 | } 43 | }; 44 | 45 | } // namespace mbed 46 | 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /9560_Picossci_NTSC/README.md: -------------------------------------------------------------------------------- 1 | # Sample codes (Picossci_NTSC) 2 | 3 | Softwares for "Picossci NTSC" 4 | 5 | + lib ------------------------------ Arduino用ライブラリの格納ディレクトリ 6 | + Picossci_NTSC ----------------- このフォルダを Arduinoのライブラリフォルダにコピーして使用できます 7 | + examples ------------------- サンプルコードが格納されているフォルダ 8 | + HowToUse 9 | + main.cpp --------------- 基本的な使用方法のサンプルコード 10 | + NoLibrarySample 11 | + main.cpp --------------- ライブラリを使用せずユーザーコードのみで映像と音声を出力するサンプルコード 12 | + platformio.ini ------------------- PlatformIOでのビルド用の定義 13 | 14 | ### 使用方法 15 | 16 | このこのサンプルコードは二種類のボードマネージャに対応しています。 17 | - `Arduino` 公式の mbed 版 18 | - `earlephilhower` 氏の FreeRTOS 版 ( https://github.com/earlephilhower/arduino-pico ) 19 | 20 | このサンプルコードは Arduino ライブラリの形式になっています。 21 | ライブラリの使用方法は `examples/HowToUse/main.cpp` 内にコメントとして記載しています。 22 | 23 | ### Arduino IDEで使用する場合 24 | 25 | `/lib/Picossci_NTSC` フォルダを Arduino のライブラリフォルダにコピーしてご利用ください。 26 | 27 | 28 | ### PlatformIO で使用する場合 29 | 30 | 必要に応じてご自身のプロジェクトフォルダに `/lib/Picossci_NTSC` をコピーしてご利用ください。 31 | 32 | なお、このフォルダをそのまま VisualStudioCode で開くことで、サンプルコードをビルドして試すことができます。 33 | 34 | ### GPIO割当ピンマップ 35 | 36 | 0-7 = R2R DAC 37 | 8 = LCD RS 38 | 9 = LCD CS 39 | 10 = SPI1 SCK 40 | 11 = SPI1 MOSI TX 41 | 12 = SPI1 MISO RX 42 | 13 = SD CS 43 | 14 = LED 2 (PWM7A) 44 | 15 = LED 3 (PWM7B) 45 | 16 = I2S BCLK 46 | 17 = I2S LRCLK 47 | 18 = I2S DOUT / JP1 48 | 19-21 = JP1 49 | 22 = SW 3 50 | 23 = SW 2 51 | 24 = SW 1 52 | 25 = LED 1 (PWM4B) 53 | 26-29 = JP1 54 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/FilePath.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_FILEPATH_H 17 | #define MBED_FILEPATH_H 18 | 19 | #include "platform/platform.h" 20 | 21 | #include "platform/FileSystemLike.h" 22 | #include "platform/FileLike.h" 23 | 24 | namespace mbed { 25 | /** \addtogroup platform */ 26 | 27 | /** 28 | * @class FileSystem 29 | * @ingroup platform 30 | */ 31 | class FileSystem; 32 | 33 | class FilePath { 34 | public: 35 | FilePath(const char* file_path); 36 | 37 | const char* fileName(void); 38 | 39 | bool isFileSystem(void); 40 | FileSystemLike* fileSystem(void); 41 | 42 | bool isFile(void); 43 | FileLike* file(void); 44 | bool exists(void); 45 | 46 | private: 47 | const char* file_name; 48 | FileBase* fb; 49 | }; 50 | 51 | } // namespace mbed 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_i2c_scanner/ESPr32_i2c_scanner.ino: -------------------------------------------------------------------------------- 1 | #include "espr32conta.h" 2 | #include 3 | 4 | //------------------------------------------ 5 | // Main logics 6 | //------------------------------------------ 7 | 8 | void setup() 9 | { 10 | Serial.begin(115200); 11 | Wire.begin(SDA, SCL); 12 | Serial.println("I2C Scanner"); 13 | } 14 | 15 | 16 | void loop() 17 | { 18 | byte error, address; 19 | int nDevices; 20 | 21 | Serial.println("Scanning..."); 22 | 23 | nDevices = 0; 24 | for(address = 1; address < 127; address++ ) 25 | { 26 | // The i2c_scanner uses the return value of 27 | // the Write.endTransmisstion to see if 28 | // a device did acknowledge to the address. 29 | Wire.beginTransmission(address); 30 | error = Wire.endTransmission(); 31 | 32 | if (error == 0) 33 | { 34 | Serial.print("I2C device found at address 0x"); 35 | if (address<16){ 36 | Serial.print("0"); 37 | } 38 | Serial.print(address,HEX); 39 | Serial.println(""); 40 | nDevices++; 41 | } 42 | else if (error==4) 43 | { 44 | Serial.print("Unknow error at address 0x"); 45 | if (address<16){ 46 | Serial.print("0"); 47 | } 48 | Serial.println(address,HEX); 49 | } 50 | } 51 | if (nDevices == 0){ 52 | Serial.println("No I2C devices found\n"); 53 | }else{ 54 | Serial.println("done\n"); 55 | } 56 | delay(5000); // wait 5 seconds for next scan 57 | } 58 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TARGET_STM/nvic_addr.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2017-2017 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef NVIC_ADDR_H 17 | #define NVIC_ADDR_H 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #if defined(__ICCARM__) 24 | #pragma section=".intvec" 25 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec")) 26 | #elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) 27 | extern uint32_t Load$$LR$$LR_IROM1$$Base[]; 28 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base) 29 | #elif defined(__GNUC__) 30 | extern uint32_t g_pfnVectors[]; 31 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)g_pfnVectors) 32 | #else 33 | #error "Flash vector address not set for this toolchain" 34 | #endif 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32S3_i2c_scanner/ESPr32S3_i2c_scanner.ino: -------------------------------------------------------------------------------- 1 | #include "espr32s3conta.h" 2 | #include 3 | 4 | //------------------------------------------ 5 | // Main logics 6 | //------------------------------------------ 7 | 8 | void setup() 9 | { 10 | Serial.begin(115200); 11 | Wire.begin(SDA, SCL); 12 | Serial.println("I2C Scanner"); 13 | delay(1000); 14 | } 15 | 16 | void loop() 17 | { 18 | byte error, address; 19 | int nDevices; 20 | 21 | Serial.println("Scanning..."); 22 | 23 | nDevices = 0; 24 | for(address = 1; address < 127; address++ ) 25 | { 26 | // The i2c_scanner uses the return value of 27 | // the Write.endTransmisstion to see if 28 | // a device did acknowledge to the address. 29 | Wire.beginTransmission(address); 30 | error = Wire.endTransmission(); 31 | 32 | if (error == 0) 33 | { 34 | Serial.print("I2C device found at address 0x"); 35 | if (address<16){ 36 | Serial.print("0"); 37 | } 38 | Serial.print(address,HEX); 39 | Serial.println(""); 40 | nDevices++; 41 | } 42 | else if (error==4) 43 | { 44 | Serial.print("Unknow error at address 0x"); 45 | if (address<16){ 46 | Serial.print("0"); 47 | } 48 | Serial.println(address,HEX); 49 | } 50 | } 51 | if (nDevices == 0){ 52 | Serial.println("No I2C devices found\n"); 53 | }else{ 54 | Serial.println("done\n"); 55 | } 56 | delay(5000); // wait 5 seconds for next scan 57 | } 58 | -------------------------------------------------------------------------------- /IntelRealSense/rs-dlib-cv/rs-dlib-cv.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27428.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rs-dlib-cv", "rs-dlib-cv\rs-dlib-cv.vcxproj", "{254607F2-9874-4BAE-B541-8718506B6C7F}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Debug|x64.ActiveCfg = Debug|x64 17 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Debug|x64.Build.0 = Debug|x64 18 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Debug|x86.ActiveCfg = Debug|Win32 19 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Debug|x86.Build.0 = Debug|Win32 20 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Release|x64.ActiveCfg = Release|x64 21 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Release|x64.Build.0 = Release|x64 22 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Release|x86.ActiveCfg = Release|Win32 23 | {254607F2-9874-4BAE-B541-8718506B6C7F}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {AAAD0A54-5AB5-45F9-AF3E-227C40453964} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /9599_ADS7028_SPI_12bit_1M_x8_ADC_Module/Arduino/ads7028_simple_read_8ch/ads7028_simple_read_8ch.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | uint8_t spi_mode = SPI_MODE0; 4 | 5 | void writeReg(uint8_t reg, uint8_t value) { 6 | uint8_t data[] = { 0x08, reg, value }; 7 | SPI.beginTransaction(SPISettings(1000000, MSBFIRST, spi_mode)); 8 | SPI.transfer(data, 3); 9 | SPI.endTransaction(); 10 | } 11 | 12 | void setup() { 13 | 14 | // put your setup code here, to run once: 15 | Serial.begin(2000000); 16 | 17 | #ifdef ARDUINO_m5stack_core2 18 | SPI.begin(27, 26, 19, 25); // SCK MISO MOSI SS 19 | #else 20 | SPI.begin(12, 13, 11, 10); 21 | #endif 22 | SPI.setHwCs(true); 23 | 24 | // OPMODE_CFG CONV_MODE = 0 Manual Mode 25 | writeReg(0x04, 0x00); 26 | 27 | // SEQUENCE_CFG SEQ_MODE = 2 On-the-fly sequence mode 28 | writeReg(0x10, 0x02); 29 | 30 | // DATA_CFG 31 | // APPEND_STATUS = 1b 4-bit channel ID is appended to ADC data. 32 | // CPOL_CPHA = 11b = CPOL = 1, CPHA = 1 33 | writeReg(0x02, 0x13); 34 | spi_mode = SPI_MODE3; 35 | 36 | // 転送開始 37 | SPI.beginTransaction(SPISettings(20000000, MSBFIRST, spi_mode)); 38 | 39 | // 空読みと次のチャンネル設定 40 | SPI.transfer16(0x8000 | (0 << 11)); 41 | } 42 | 43 | void loop() { 44 | #define BUFLEN 8 45 | uint16_t buf[BUFLEN]; 46 | uint16_t channel = 1; 47 | for (int i = 0; i < BUFLEN; i++) { 48 | buf[i] = SPI.transfer16(0x8000 | ((channel & 0x7) << 11)); 49 | channel++; 50 | } 51 | for (int i = 0; i < BUFLEN; i++) { 52 | Serial.print(buf[i] >> 4); 53 | Serial.print(','); 54 | } 55 | Serial.println(); 56 | } 57 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/hal/pinmap.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup hal */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2006-2013 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_PINMAP_H 20 | #define MBED_PINMAP_H 21 | 22 | #include "PinNames.h" 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | typedef struct { 29 | PinName pin; 30 | int peripheral; 31 | int function; 32 | } PinMap; 33 | 34 | void pin_function(PinName pin, int function); 35 | void pin_mode (PinName pin, PinMode mode); 36 | 37 | uint32_t pinmap_peripheral(PinName pin, const PinMap* map); 38 | uint32_t pinmap_function(PinName pin, const PinMap* map); 39 | uint32_t pinmap_merge (uint32_t a, uint32_t b); 40 | void pinmap_pinout (PinName pin, const PinMap *map); 41 | uint32_t pinmap_find_peripheral(PinName pin, const PinMap* map); 42 | uint32_t pinmap_find_function(PinName pin, const PinMap* map); 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | #endif 49 | 50 | /** @}*/ 51 | -------------------------------------------------------------------------------- /INA260_breakout/mbed_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * mbed SDK 3 | * Copyright (c) 2017 ARM Limited 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | // Automatically generated configuration file. 19 | // DO NOT EDIT, content will be overwritten. 20 | 21 | #ifndef __MBED_CONFIG_DATA__ 22 | #define __MBED_CONFIG_DATA__ 23 | 24 | // Configuration parameters 25 | #define CLOCK_SOURCE USE_PLL_HSE_EXTC|USE_PLL_HSI // set by target:NUCLEO_F103RB 26 | #define CLOCK_SOURCE_USB 0 // set by target:NUCLEO_F103RB 27 | #define MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE 9600 // set by library:platform 28 | #define MBED_CONF_PLATFORM_STDIO_BAUD_RATE 9600 // set by library:platform 29 | #define MBED_CONF_PLATFORM_STDIO_CONVERT_NEWLINES 0 // set by library:platform 30 | #define MBED_CONF_PLATFORM_STDIO_FLUSH_AT_EXIT 1 // set by library:platform 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /1796_RPi_EnvSensor/ATTiny/I2Cslave.hex: -------------------------------------------------------------------------------- 1 | :100000000EC01DC01CC01BC01AC019C018C017C02C 2 | :1000100016C015C014C013C012C057C075C011243B 3 | :100020001FBECFE5D2E0DEBFCDBF20E0A0E6B0E04E 4 | :1000300001C01D92A536B207E1F714D0E3C0E0CFAE 5 | :10004000379A96B1976096B93D9A97B1982B97B920 6 | :10005000089597B1982B97B9349A369A349BFECF6E 7 | :1000600085B10895F89485B7806485BF80E187BB2A 8 | :1000700088BB83E0E5DF8AE605D0789483E0E9DF9A 9 | :1000800010D0FCCF80936400109263001092620045 10 | :10009000C29AC09ABA9AB89888EA8DB980EF8EB998 11 | :1000A0000895809361000895813831F0803C41F0DB 12 | :1000B000803851F4C49801C0C49A10926300089526 13 | :1000C000809161008093620008951F920F920FB695 14 | :1000D0000F9211248F931092600080E28EB9B8982D 15 | :1000E000B29902C088EF07C0759BFACFC29AC09A36 16 | :1000F000BA9AB89888EA8DB980EF8EB98F910F902F 17 | :100100000FBE0F901F9018951F920F920FB60F926F 18 | :1001100011242F933F934F935F936F937F938F930C 19 | :100120009F93AF93BF93EF93FF939FB18091600034 20 | :100130008230E9F130F4882359F0813009F051C060 21 | :1001400028C08430D9F1C8F0853009F04AC03DC0DC 22 | :10015000992331F080916400292F269528130FC030 23 | :1001600090FF06C080916300803C48F081E001C0B0 24 | :1001700084E080936000B89A1EC090FF0AC010927D 25 | :100180006000C29AC09ABA9AB89888EA8DB980EF8E 26 | :100190001AC080916300803C29F410926300809122 27 | :1001A00061008FB982E080936000B89A0BC083E051 28 | :1001B00080936000B8981FB88EE705C085E08093F3 29 | :1001C0006000B89880E78EB90CC09093630084E01B 30 | :1001D00080936000B89A1FB88EE78EB98091630053 31 | :1001E00063DFFF91EF91BF91AF919F918F917F91CD 32 | :1001F0006F915F914F913F912F910F900FBE0F9094 33 | :080200001F901895F894FFCF40 34 | :00000001FF 35 | -------------------------------------------------------------------------------- /ESP-WROOM-02/ESPWiFi_SD_Logger/BME280.h: -------------------------------------------------------------------------------- 1 | /* 2 | BME280.h 3 | original file:https://github.com/SWITCHSCIENCE/BME280 4 | 5 | using BME280 module as i2c slave device 6 | */ 7 | #pragma once 8 | 9 | class BME280 10 | { 11 | public: 12 | // set i2c address 13 | // 0x77 SDO high 14 | // 0x76 SDO low 15 | BME280(int address=0x77): 16 | _address(address){} 17 | 18 | /* Initialize */ 19 | void init(); 20 | 21 | // @param (*temp) write Temperature value into this variable 22 | // @param (*press) write Pressure value into this variable 23 | // @param (*hum) write Humidity value into this variable 24 | void getSensorData(double *temp, double *press, double *hum); 25 | 26 | private: 27 | int _address; 28 | void readTrim(); 29 | void writeReg(uint8_t reg_address, uint8_t data); 30 | void readData(); 31 | signed long int calibration_T(signed long int adc_T); 32 | unsigned long int calibration_P(signed long int adc_P); 33 | unsigned long int calibration_H(signed long int adc_H); 34 | 35 | unsigned long int hum_raw,temp_raw,pres_raw; 36 | signed long int t_fine; 37 | 38 | uint16_t dig_T1; 39 | int16_t dig_T2; 40 | int16_t dig_T3; 41 | uint16_t dig_P1; 42 | int16_t dig_P2; 43 | int16_t dig_P3; 44 | int16_t dig_P4; 45 | int16_t dig_P5; 46 | int16_t dig_P6; 47 | int16_t dig_P7; 48 | int16_t dig_P8; 49 | int16_t dig_P9; 50 | int8_t dig_H1; 51 | int16_t dig_H2; 52 | int8_t dig_H3; 53 | int16_t dig_H4; 54 | int16_t dig_H5; 55 | int8_t dig_H6; 56 | }; 57 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/FileLike.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_FILELIKE_H 17 | #define MBED_FILELIKE_H 18 | 19 | #include "platform/mbed_toolchain.h" 20 | #include "platform/FileBase.h" 21 | #include "platform/FileHandle.h" 22 | #include "platform/NonCopyable.h" 23 | 24 | namespace mbed { 25 | /** \addtogroup platform */ 26 | 27 | 28 | /* Class FileLike 29 | * A file-like object is one that can be opened with fopen by 30 | * fopen("/name", mode). 31 | * 32 | * @note Synchronization level: Set by subclass 33 | * @ingroup platform 34 | */ 35 | class FileLike : public FileHandle, public FileBase, private NonCopyable { 36 | public: 37 | /** Constructor FileLike 38 | * 39 | * @param name The name to use to open the file. 40 | */ 41 | FileLike(const char *name = NULL) : FileBase(name, FilePathType) {} 42 | virtual ~FileLike() {} 43 | }; 44 | 45 | 46 | } // namespace mbed 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/TARGET_NUCLEO_F103RB/TARGET_STM/TARGET_STM32F1/can_device.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2017 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_CAN_DEVICE_H 17 | #define MBED_CAN_DEVICE_H 18 | 19 | #include "cmsis.h" 20 | #include "stm32f1xx_hal.h" 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | #ifdef DEVICE_CAN 27 | 28 | #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie 29 | 30 | #define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn 31 | #define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler 32 | #define CAN1_IRQ_TX_IRQN CAN1_TX_IRQn 33 | #define CAN1_IRQ_TX_VECT CAN1_TX_IRQHandler 34 | #define CAN1_IRQ_ERROR_IRQN CAN1_SCE_IRQn 35 | #define CAN1_IRQ_ERROR_VECT CAN1_SCE_IRQHandler 36 | #define CAN1_IRQ_PASSIVE_IRQN CAN1_SCE_IRQn 37 | #define CAN1_IRQ_PASSIVE_VECT CAN1_SCE_IRQHandler 38 | #define CAN1_IRQ_BUS_IRQN CAN1_SCE_IRQn 39 | #define CAN1_IRQ_BUS_VECT CAN1_SCE_IRQHandler 40 | 41 | #endif // DEVICE_CAN 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /TJA1040_CAN_Tranciver_board/MBED/main.cpp: -------------------------------------------------------------------------------- 1 | //************************************************** 2 | // TJA1040 CAN sample プログラム 3 | // 2台のTJA1040でのループバックテスト 4 | // 2016/4/27 5 | // 6 | //************************************************** 7 | #include "mbed.h" 8 | 9 | Ticker ticker; //タイマー割り込みレジスタ 10 | DigitalOut led1(LED1); //LEDレジスタ 11 | DigitalOut led2(LED2); //LEDレジスタ 12 | 13 | 14 | 15 | CAN can1(p9, p10); //CAN1のポート設定 16 | CAN can2(p30, p29); //CAN2のポート設定 17 | char counter = 0; //通信回数のカウンター 18 | 19 | int frquency(1000); //CANの通信速度kHz 20 | 21 | void send() 22 | { 23 | printf("send()\n"); //デバッグ用ターミナルソフトでの表示メッセージ 24 | if(can1.write(CANMessage(1337, &counter, 1))) { //データー送信 25 | printf("wloop()\n"); 26 | counter++; 27 | printf("Message sent: %d\n", counter); //送信済みメッセージ表示 28 | 29 | 30 | } 31 | led1 = !led1; //送信後LED表示 32 | } 33 | 34 | int main() 35 | { 36 | printf("main()\n"); 37 | ticker.attach(&send, 1); //1秒の割り込み 38 | CANMessage msg; 39 | while(1) { 40 | printf("loop()\n"); 41 | if(can2.read(msg)) { //データー受信 42 | printf("Message received: %d\n", msg.data[0]); //受信データー表示 43 | led2 = !led2; //LED受信表示 44 | } 45 | wait(0.2); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /INA260_breakout/main.cpp: -------------------------------------------------------------------------------- 1 | /* INA260 test app*/ 2 | 3 | #include "mbed.h" 4 | #include "INA260.hpp" 5 | 6 | 7 | // Host PC Communication channels 8 | Serial pc(USBTX, USBRX); // tx, rx 9 | //i2c setup 10 | I2C i2c(PB_9,PB_8); 11 | INA260 VCmonitor(i2c); 12 | DigitalIn ALT(PA_8); //Alert pin 13 | DigitalIn button(PC_13); //button 14 | int main() { 15 | 16 | double V,C,P; 17 | int count = 1; 18 | // Sets 4 samples average and sampling time for voltage and current to 8.244ms 19 | VCmonitor.setConfig(0x0600 | 0x01C0 | 0x0038 | 0x0007); //INA260_CONFIG_AVGRANGE_64|INA260_CONFIG_BVOLTAGETIME_8244US|INA260_CONFIG_SCURRENTTIME_8244US|INA260_CONFIG_MODE_SANDBVOLT_CONTINUOUS 20 | pc.printf("INA260 TEST!\n"); 21 | pc.printf(""__DATE__" , "__TIME__"\n"); 22 | pc.printf("%d Config register\n",0x0600 | 0x01C0 | 0x0038 | 0x0007); //prints the COnfig reg value to PC COM port 23 | VCmonitor.setAlert(0x8001); //set current value as alert, latch alert pin 24 | VCmonitor.setLim(0x0); //set limit to 10mA (10/1.25) 25 | 26 | wait_ms(3000); 27 | while(1) 28 | { 29 | //get ina260 settings 30 | if((VCmonitor.getVoltage(&V) == 0) && (VCmonitor.getCurrent(&C) == 0) && (VCmonitor.getPower(&P) == 0)) 31 | { 32 | pc.printf("%d, V:%1.3fV ,C:%2.2fmA ,P:%2.1fmW\n",count,V,C,P); 33 | } 34 | count++; 35 | if(ALT==1) 36 | { 37 | pc.printf("Overcurrent!!!!"); 38 | } 39 | if (button == 0) 40 | { 41 | VCmonitor.readAlert(); //read Alert register to clear latched alert 42 | } 43 | wait_ms(1000); 44 | } 45 | } -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/mbed_preprocessor.h: -------------------------------------------------------------------------------- 1 | /** \addtogroup platform */ 2 | /** @{*/ 3 | /* mbed Microcontroller Library 4 | * Copyright (c) 2006-2013 ARM Limited 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | #ifndef MBED_PREPROCESSOR_H 19 | #define MBED_PREPROCESSOR_H 20 | 21 | 22 | /** MBED_CONCAT 23 | * Concatenate tokens together 24 | * 25 | * @note 26 | * Expands tokens before concatenation 27 | * 28 | * @code 29 | * // Creates a unique label based on the line number 30 | * int MBED_CONCAT(UNIQUE_LABEL_, __LINE__) = 1; 31 | * @endcode 32 | */ 33 | #define MBED_CONCAT(a, b) MBED_CONCAT_(a, b) 34 | #define MBED_CONCAT_(a, b) a##b 35 | 36 | /** MBED_STRINGIFY 37 | * Converts tokens into strings 38 | * 39 | * @note 40 | * Expands tokens before stringification 41 | * 42 | * @code 43 | * // Creates a string based on the parameters 44 | * const char *c = MBED_STRINGIFY(This is a ridiculous way to create a string) 45 | * @endcode 46 | */ 47 | #define MBED_STRINGIFY(a) MBED_STRINGIFY_(a) 48 | #define MBED_STRINGIFY_(a) #a 49 | 50 | 51 | #endif 52 | 53 | /** @}*/ 54 | -------------------------------------------------------------------------------- /AQM1248A_breakout/Arduino/AQM1248A_lib/examples/graphictest/graphictest.ino: -------------------------------------------------------------------------------- 1 | #include "Adafruit_GFX.h" 2 | #include "AQM1248A.h" 3 | #define PWR 8 4 | #define RS 9 5 | #define CS 10 6 | AQM1248A aqm = AQM1248A(CS,RS,PWR); 7 | void setup() 8 | { 9 | Serial.begin(9600); 10 | aqm.begin(); // 初期化します 11 | // 初期画像 12 | aqm.showPic(); // バッファの内容を液晶に反映します(必須) 13 | delay(1000); 14 | aqm.fillScreen(0); 15 | aqm.showPic(); 16 | } 17 | 18 | void loop() 19 | { 20 | // 円の描画 21 | aqm.drawCircle(63,24,10,1); 22 | aqm.showPic(); 23 | delay(1000); 24 | aqm.setCursor(0,0); 25 | aqm.setTextColor(1); 26 | aqm.setTextSize(1); 27 | aqm.println("circle"); 28 | aqm.showPic(); 29 | delay(1000); 30 | 31 | aqm.fillScreen(1);aqm.showPic(); 32 | 33 | // 三角形の表示 34 | aqm.fillTriangle(43,47,73,47,63,0,0); 35 | aqm.showPic(); 36 | delay(1000); 37 | aqm.setCursor(0,0); 38 | aqm.setTextColor(0); 39 | aqm.setTextSize(2); 40 | aqm.println("triangle"); 41 | aqm.showPic(); 42 | delay(1000); 43 | 44 | aqm.fillScreen(0);aqm.showPic(); 45 | 46 | // 四角形の表示 47 | aqm.fillRoundRect(43,5,30,30,3,1); 48 | aqm.showPic(); 49 | delay(1000); 50 | aqm.setCursor(0,0); 51 | aqm.setTextColor(1); 52 | aqm.setTextSize(3); 53 | aqm.println("rectangle"); 54 | aqm.showPic(); 55 | delay(1000); 56 | 57 | aqm.fillScreen(0);aqm.showPic(); 58 | 59 | // sin波の表示 60 | for(int i=0;i<127;i++) 61 | { 62 | aqm.drawPixel(i,(int)(sin(i*0.2)*20) + 24,1); 63 | aqm.showPic(); 64 | } 65 | delay(1000); 66 | aqm.fillScreen(0);aqm.showPic(); 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /9826_MA735_Digital_Angle_Sensor_Module/ma735_generic_sensor/ma735_generic_sensor.ino: -------------------------------------------------------------------------------- 1 | // use SimpleFOC 2 | 3 | #include 4 | #include 5 | 6 | const int MA735_CS = SS; 7 | SPISettings settings = SPISettings(10000000, MSBFIRST, SPI_MODE0); 8 | 9 | // sensor reading function example 10 | // for the magnetic sensor with analog communication 11 | // returning an angle in radians in between 0 and 2PI 12 | float readSensor() { 13 | SPI.beginTransaction(settings); 14 | digitalWrite(MA735_CS, LOW); 15 | float angle = SPI.transfer16(0) * _2PI / 65536.0; 16 | digitalWrite(MA735_CS, HIGH); 17 | SPI.endTransaction(); 18 | return angle; 19 | } 20 | 21 | // sensor intialising function 22 | void initSensor() { 23 | SPI.begin(); 24 | pinMode(MA735_CS, OUTPUT); 25 | digitalWrite(MA735_CS, HIGH); 26 | } 27 | 28 | // generic sensor class contructor 29 | // - read sensor callback 30 | // - init sensor callback (optional) 31 | GenericSensor sensor = GenericSensor(readSensor, initSensor); 32 | 33 | void setup() { 34 | // monitoring port 35 | Serial.begin(115200); 36 | 37 | // if callbacks are not provided in the constructor 38 | // they can be assigned directly: 39 | //sensor.readCallback = readSensor; 40 | //sensor.initCallback = initSensor; 41 | 42 | sensor.init(); 43 | 44 | Serial.println("Sensor ready"); 45 | _delay(1000); 46 | } 47 | 48 | void loop() { 49 | // iterative function updating the sensor internal variables 50 | // it is usually called in motor.loopFOC() 51 | sensor.update(); 52 | 53 | // display the angle and the angular velocity to the terminal 54 | Serial.print(sensor.getAngle()); 55 | Serial.print("\t"); 56 | Serial.println(sensor.getVelocity()); 57 | delay(20); 58 | } -------------------------------------------------------------------------------- /PCA9622DR_breakout/mbed/Test_PCA9622DR/PCA9622DR.h: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** PCA9622DR.h ** 3 | ** ** 4 | ** Created : 2015/08/28 14:33:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | /*--------------------------------------------------- 9 | Constant value 10 | */ 11 | const int PCA9622DR_addr = 0xE0; // define the I2C Address 12 | 13 | /*--------------------------------------------------- 14 | PCA9622DR Register Address 15 | */ 16 | // Control registers 17 | #define MODE1 0x00 18 | #define MODE2 0x01 19 | #define PPWM0 0x02 20 | #define PPWM1 0x03 21 | #define PPWM2 0x04 22 | #define PPWM3 0x05 23 | #define PPWM4 0x06 24 | #define PPWM5 0x07 25 | #define PPWM6 0x08 26 | #define PPWM7 0x09 27 | #define PPWM8 0x0A 28 | #define PPWM9 0x0B 29 | #define PPWM10 0x0C 30 | #define PPWM11 0x0D 31 | #define PPWM12 0x0E 32 | #define PPWM13 0x0F 33 | #define PPWM14 0x10 34 | #define PPWM15 0x11 35 | #define GRPPWM 0x12 36 | #define GRPFREQ 0x13 37 | #define LEDOUT0 0x14 38 | #define LEDOUT1 0x15 39 | #define LEDOUT2 0x16 40 | #define LEDOUT3 0x17 41 | #define SUBADR1 0x18 42 | #define SUBADR2 0x19 43 | #define SUBADR3 0x1A 44 | #define ALLCALLADR 0x1B 45 | -------------------------------------------------------------------------------- /ESPr_Developer_32/ESP32_I2C_MUX/ESP32_I2C_MUX.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include "SSCI_BME280.h" 3 | 4 | // BME280 SETTINGS 5 | #define BME_VIO 25 6 | #define BME_VCORE 26 7 | #define BME_GND 15 8 | #define BME_CS0 14 9 | #define BME_SDI 12 10 | #define BME_SCK 13 11 | #define BME_SDO 34 // ダミー 12 | SSCI_BME280 bme280; 13 | uint8_t i2c_addr = 0x76; //I2C Address 14 | 15 | void setup() 16 | { 17 | Serial.begin(115200); 18 | 19 | /* BME280 Settings */ 20 | uint8_t osrs_t = 1; //Temperature oversampling x 1 21 | uint8_t osrs_p = 1; //Pressure oversampling x 1 22 | uint8_t osrs_h = 1; //Humidity oversampling x 1 23 | uint8_t bme280mode = 3; //Normal mode 24 | uint8_t t_sb = 5; //Tstandby 1000ms 25 | uint8_t filter = 0; //Filter off 26 | uint8_t spi3w_en = 0; //3-wire SPI Disable 27 | pinMode(BME_GND,OUTPUT); 28 | digitalWrite(BME_GND,LOW); 29 | pinMode(BME_VIO,OUTPUT); 30 | digitalWrite(BME_VIO,HIGH); 31 | pinMode(BME_VCORE,OUTPUT); 32 | digitalWrite(BME_VCORE,HIGH); 33 | pinMode(BME_CS0,INPUT); 34 | pinMode(BME_SDO,OUTPUT); 35 | digitalWrite(BME_SDO,LOW); // ダミー 36 | 37 | Wire.begin(BME_SDI,BME_SCK); 38 | bme280.setMode(i2c_addr, osrs_t, osrs_p, osrs_h, bme280mode, t_sb, filter, spi3w_en); 39 | 40 | bme280.readTrim(); 41 | } 42 | 43 | void loop() { 44 | double temp_act, press_act, hum_act; //最終的に表示される値を入れる変数 45 | 46 | bme280.readData(&temp_act, &press_act, &hum_act); 47 | 48 | Serial.print("/////\nTEMP : "); 49 | Serial.print(temp_act); 50 | Serial.print(" DegC \nPRESS : "); 51 | Serial.print(press_act); 52 | Serial.print(" hPa \nHUM : "); 53 | Serial.println(hum_act); 54 | 55 | delay(1000); 56 | } -------------------------------------------------------------------------------- /PCAL9555APW_breakout/Arduino/PCAL9555APW_sample/PCAL9555APW_sample.ino: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | // SWITCHSCIENCE wiki -- http://trac.switch-science.com/ 3 | // PCAL9555APW Arduino Sample 4 | *******************************************************************************/ 5 | #include 6 | 7 | #define PCAL9555APW_ADDR 0x20 // in 7bit for Arduino 8 | 9 | #define INPUT_REG 0x00 10 | #define OUTPUT_REG 0x02 11 | #define INVERS_REG 0x04 12 | #define CONFIG_REG 0x06 13 | #define OUTPUT_DRIVE 0x40 14 | #define INPUT_LATCH 0x44 15 | #define PULLUP_EN 0x46 16 | #define PULLUP_SEL 0x48 17 | #define INTRRPT_MASK 0x4A 18 | #define INTRRPT_STAT 0x4C 19 | #define OUTPUT_CONFIG 0x4F 20 | 21 | 22 | void datasend(int,int,int *,int); 23 | void dataread(int,int,int *,int); 24 | 25 | void setup() 26 | { 27 | Serial.begin(9600); 28 | Wire.begin(); 29 | } 30 | 31 | void loop() 32 | { 33 | int port_input[2]; //入力状態を取得する変数 34 | dataread(PCAL9555APW_ADDR, INPUT_REG, port_input, 2); 35 | Serial.print("port0:"); 36 | Serial.print(port_input[0], BIN); 37 | Serial.print("\tport1:"); 38 | Serial.println(port_input[1], BIN); 39 | } 40 | 41 | void datasend(int id,int reg,int *data,int datasize) 42 | { 43 | Wire.beginTransmission(id); 44 | Wire.write(reg); 45 | for(int i=0;i 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | /** 33 | * \defgroup hal_rtc RTC hal functions 34 | * @{ 35 | */ 36 | 37 | /** Initialize the RTC peripheral 38 | * 39 | */ 40 | void rtc_init(void); 41 | 42 | /** Deinitialize RTC 43 | * 44 | * TODO: The function is not used by rtc api in mbed-drivers. 45 | */ 46 | void rtc_free(void); 47 | 48 | /** Get the RTC enable status 49 | * 50 | * @retval 0 disabled 51 | * @retval 1 enabled 52 | */ 53 | int rtc_isenabled(void); 54 | 55 | /** Get the current time from the RTC peripheral 56 | * 57 | * @return The current time 58 | */ 59 | time_t rtc_read(void); 60 | 61 | /** Set the current time to the RTC peripheral 62 | * 63 | * @param t The current time to be set 64 | */ 65 | void rtc_write(time_t t); 66 | 67 | /**@}*/ 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif 74 | 75 | #endif 76 | 77 | /** @}*/ 78 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/drivers/Timeout.h: -------------------------------------------------------------------------------- 1 | /* mbed Microcontroller Library 2 | * Copyright (c) 2006-2013 ARM Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #ifndef MBED_TIMEOUT_H 17 | #define MBED_TIMEOUT_H 18 | 19 | #include "drivers/Ticker.h" 20 | #include "platform/NonCopyable.h" 21 | #include "platform/mbed_sleep.h" 22 | 23 | namespace mbed { 24 | /** \addtogroup drivers */ 25 | 26 | /** A Timeout is used to call a function at a point in the future 27 | * 28 | * You can use as many seperate Timeout objects as you require. 29 | * 30 | * @note Synchronization level: Interrupt safe 31 | * 32 | * Example: 33 | * @code 34 | * // Blink until timeout. 35 | * 36 | * #include "mbed.h" 37 | * 38 | * Timeout timeout; 39 | * DigitalOut led(LED1); 40 | * 41 | * int on = 1; 42 | * 43 | * void attimeout() { 44 | * on = 0; 45 | * } 46 | * 47 | * int main() { 48 | * timeout.attach(&attimeout, 5); 49 | * while(on) { 50 | * led = !led; 51 | * wait(0.2); 52 | * } 53 | * } 54 | * @endcode 55 | * @ingroup drivers 56 | */ 57 | class Timeout : public Ticker, private NonCopyable { 58 | 59 | protected: 60 | virtual void handler(); 61 | }; 62 | 63 | } // namespace mbed 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /8512_PRi_motor_driver_simple/8512_motor.py: -------------------------------------------------------------------------------- 1 | import RPi.GPIO as GPIO 2 | import time 3 | 4 | Pwm0Pin_0 = 12 # GPIO 18 5 | Pwm0Pin_1 = 32 # GPIO 12 6 | Pwm1Pin_0 = 33 # GPIO 13 7 | Pwm1Pin_1 = 35 # GPIO 19 8 | 9 | GPIO.setmode(GPIO.BOARD) 10 | GPIO.setup(Pwm0Pin_0, GPIO.OUT) 11 | GPIO.output(Pwm0Pin_0, GPIO.LOW) 12 | GPIO.setup(Pwm0Pin_1, GPIO.OUT) 13 | GPIO.output(Pwm0Pin_1, GPIO.LOW) 14 | GPIO.setup(Pwm1Pin_0, GPIO.OUT) 15 | GPIO.output(Pwm1Pin_0, GPIO.LOW) 16 | GPIO.setup(Pwm1Pin_1, GPIO.OUT) 17 | GPIO.output(Pwm1Pin_1, GPIO.LOW) 18 | 19 | p0_0 = GPIO.PWM(Pwm0Pin_0, 100) 20 | p0_0.start(0) 21 | p0_1 = GPIO.PWM(Pwm0Pin_1, 100) 22 | p1_0 = GPIO.PWM(Pwm1Pin_0, 100) 23 | p1_0.start(0) 24 | p1_1 = GPIO.PWM(Pwm1Pin_1, 100) 25 | flag = 0 26 | 27 | try: 28 | while True: 29 | for dc in range(0, 31, 4): 30 | if flag == 0: 31 | p0_0.ChangeDutyCycle(dc) 32 | p1_0.ChangeDutyCycle(31-dc) 33 | else: 34 | p0_1.ChangeDutyCycle(dc) 35 | p1_1.ChangeDutyCycle(31-dc) 36 | time.sleep(0.05) 37 | time.sleep(1) 38 | for dc in range(30, -1, -4): 39 | if flag == 0: 40 | p0_0.ChangeDutyCycle(dc) 41 | p1_0.ChangeDutyCycle(30-dc) 42 | else: 43 | p0_1.ChangeDutyCycle(dc) 44 | p1_1.ChangeDutyCycle(30-dc) 45 | time.sleep(0.05) 46 | time.sleep(1) 47 | if flag == 0: 48 | p0_0.stop() 49 | p0_1.start(0) 50 | p1_0.stop() 51 | p1_1.start(0) 52 | flag = 1 53 | else: 54 | p0_0.start(0) 55 | p0_1.stop() 56 | p1_0.start(0) 57 | p1_1.stop() 58 | flag = 0 59 | except KeyboardInterrupt: 60 | pass 61 | p0_0.stop() 62 | p1_0.stop() 63 | GPIO.cleanup() 64 | -------------------------------------------------------------------------------- /PCA9632DP1_breakout/mbed/Test_PCA9632DP1/main.cpp: -------------------------------------------------------------------------------- 1 | /************************************* 2 | ** PCA9632DP1 test ** 3 | ** ** 4 | ** Created : 2015/07/31 16:59:00 ** 5 | ** Author : O.aoki ** 6 | **************************************/ 7 | 8 | #include "mbed.h" 9 | #include "PCA9632DP1.h" 10 | 11 | I2C i2c(p9, p10); // sda, scl 12 | Serial pc(USBTX, USBRX); // tx, rx 13 | 14 | DigitalOut myled1(LED1); 15 | DigitalOut myled2(LED2); 16 | DigitalOut myled3(LED3); 17 | DigitalOut myled4(LED4); 18 | 19 | /*--------------------------------------------------- 20 | PCA9632DP1 21 | */ 22 | void Init_LED_Driver() { // PCA9632DP1 Initialize 23 | char cmd[2]; 24 | 25 | // Port 0 Configration 26 | cmd[0] = MODE1; 27 | cmd[1] = 0x00; // SLEEP = 0 28 | i2c.write(addr, cmd, 2); 29 | // Port 1 Configration 30 | cmd[0] = LEDOUT; 31 | cmd[1] = 0xAA; // LED3,2,1,0 PWM(=10) 32 | i2c.write(addr, cmd, 2); 33 | } 34 | 35 | /*--------------------------------------------------- 36 | Main Routine 37 | */ 38 | int main() { 39 | char cmd[5], sub[5]; 40 | int cnt, i; 41 | 42 | Init_LED_Driver(); 43 | myled1 = 0; 44 | myled2 = 0; 45 | myled3 = 0; 46 | myled4 = 0; 47 | cnt = 0; 48 | cmd[0] = PPWM0 + 0x80; 49 | cmd[1] = 0x60; 50 | cmd[2] = 0x40; 51 | cmd[3] = 0x20; 52 | cmd[4] = 0x00; 53 | for (i = 0; i < 5; i++) sub[i] = 1; 54 | i2c.write(addr, cmd, 5); 55 | 56 | while(1) { 57 | wait(0.002); 58 | cmd[0] = PPWM0 + 0x80; 59 | for (i = 1; i < 5; i++) { 60 | cmd[i] += sub[i]; 61 | if (cmd[i] == 0x00) sub[i] = 1; 62 | if (cmd[i] == 0x7F) sub[i] = -1; 63 | } 64 | i2c.write(addr, cmd, 5); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /INA260_breakout/mbed/platform/mbed_application.h: -------------------------------------------------------------------------------- 1 | 2 | /** \addtogroup platform */ 3 | /** @{*/ 4 | /* mbed Microcontroller Library 5 | * Copyright (c) 2017-2017 ARM Limited 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | #ifndef MBED_APPLICATION_H 20 | #define MBED_APPLICATION_H 21 | 22 | #include 23 | 24 | #if defined(__CORTEX_M3) || defined(__CORTEX_M4) || defined(__CORTEX_M7) 25 | #define MBED_APPLICATION_SUPPORT 1 26 | #else 27 | #define MBED_APPLICATION_SUPPORT 0 28 | #endif 29 | 30 | #if MBED_APPLICATION_SUPPORT 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /** 36 | * Start the application at the given address. This function does 37 | * not return. It is the applications responsibility for flushing to 38 | * or powering down external components such as filesystems or 39 | * socket connections before calling this function. For Cortex-M 40 | * devices this function powers down generic system components such as 41 | * the NVIC and set the vector table to that of the new image followed 42 | * by jumping to the reset handler of the new image. 43 | * 44 | * @param address Starting address of next application to run 45 | */ 46 | void mbed_start_application(uintptr_t address); 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | #endif 52 | 53 | #endif 54 | 55 | /** @}*/ 56 | -------------------------------------------------------------------------------- /9373_ESPr32_conta_sample/ESPr32_NCD9830/ESPr32_NCD9830.ino: -------------------------------------------------------------------------------- 1 | #include "espr32conta.h" 2 | #include 3 | 4 | //------------------------------------------ 5 | // Main logics 6 | //------------------------------------------ 7 | 8 | void setup() 9 | { 10 | Serial.begin(115200); 11 | Wire.begin(SDA, SCL); 12 | Serial.println("NCD9830_examle"); 13 | } 14 | 15 | void loop() 16 | { 17 | int data; 18 | float value; 19 | char buf1[5]; 20 | 21 | Serial.println("Scanning..."); 22 | 23 | for(int ch = 0; ch < 8; ch++ ) 24 | { 25 | data = read_analog(ch); // read from ADC ch 26 | // Serial.println("CH" + (String)ch + ":" + (String)data); 27 | if(data >= 0){ 28 | value = data * (3.3 / 256); 29 | dtostrf(value,1,2,buf1); 30 | Serial.println("CH" + (String)ch + ":" + (String)buf1 + " V"); 31 | }else{ 32 | Serial.println("NCD9830 error"); 33 | } 34 | } 35 | delay(2000); // wait 5 seconds for next scan 36 | } 37 | 38 | //------------------------------------------ 39 | // device fonction 40 | //------------------------------------------ 41 | int read_analog(int ch){ 42 | byte error; 43 | int data; 44 | int add_NCD9830 = 0x48; //ADC の I2C アドレス 45 | int cmd = 0x80 + ((ch << 3) & 0x30) + ((ch << 6) & 0x40); //Channel Selectorの設定 46 | Wire.beginTransmission(add_NCD9830); //IC2デバイスに接続 47 | Wire.write(cmd); //I2Cデバイスのレジスタを指定 48 | error = Wire.endTransmission(false); //送信完了するが接続は維持 49 | /* error value 50 | * 0: success. 51 | * 1: data too long to fit in transmit buffer. 52 | * 2: received NACK on transmit of address. 53 | * 3: received NACK on transmit of data. 54 | * 4: other error. 55 | * 5: timeout 56 | */ 57 | if(error == 0){ 58 | Wire.requestFrom(add_NCD9830, 1); //IC2デバイスに指定したレジスタアドレスから指定サイズ分のデータ取得を要求 59 | data = Wire.read(); //データを取得 (受け取ったバイト数繰り返す) 60 | }else{ 61 | data = -1; 62 | } 63 | return data; 64 | } 65 | --------------------------------------------------------------------------------