Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit ede6245 Nov 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
drive Update Sep 6, 2018
example Update README.md Nov 7, 2018
extras compass example Oct 11, 2018
LICENSE Initial commit Aug 29, 2018
README.md Merge branch 'master' of https://github.com/BPI-STEAM/BPI-BIT-Arduino… Oct 22, 2018

README.md

BPI-BIT-Arduino_IDE MIT


  • drive:存放Windows/Linux/MAC OS驱动程序

  • example:存放了BPI-BIT的Arduino示例代码
    • BuzzerFeeding:控制蜂鸣器鸣叫声音的频率逐渐加强
    • Key-LED:通过按键A控制在LED面板上亮3颗LED
    • UnitTest:BIT板基本功能测试
    • compass:BIT板板载MPU9250 Master Mode 指北针示例代码

Pin Define 引脚定义

Pin Name Analog Function1 Analog Function2 Function1 Function2 Power
P3 ADC2_CH4 GPIO13
P0 ADC2_CH8 DAC_1 GPIO25
P4 ADC2_CH3 GPIO15
P5 ADC1_CH7 GPIO35
P6 ADC2_CH5 GPIO12
P7 ADC2_CH6 GPIO14
P1 ADC1_CH4 GPIO32
P8 GPIO16
P9 GPIO17
P10 ADC2_CH9 DAC_2 GPIO26
P11 ADC2_CH7 GPIO27
P12 ADC2_CH2 GPIO02
P2 ADC1_CH5 GPIO33
P13 GPIO18 SPI_SCK
P14 GPIO19 SPI_MISO
P15 GPIO23 SPI_MOSI
P16 GPIO05 SPI_SS
3V3 POWER:3V3
3V3 POWER:3V3
3V3 POWER:3V3
P19 GPIO22 I2C_SCL
P20 GPIO21 I2C_SDA
GND GROUND
GND GROUND
GND GROUND

LED序号

20 15 10 5 0
21 16 11 6 1
22 17 12 7 2
23 18 13 8 3
24 19 14 9 4

Onboard peripherals 板载外设

Onboard peripherals Interface Pin Mode
Light Sensor(L) GPIO 36 Analog Input
Light Sensor(R) GPIO 39 Analog Input
Botton A GPIO 35 Digital Input
Botton B GPIO 27 Digital Input
Temperature Sensor GPIO 34 Analog Input
Buzzer GPIO 25 PWM(Digital Output) / Analog Output
RGB_LED GPIO 4 Digital Output
MPU9250_SCL GPIO 22 Digital Output
MPU9250_SDA GPIO 21 Digital Output
MPU9250_INT GPIO 16 Digital Input
R_LED(SPI_SCK) GPIO 18 Digital Output

pins_arduino.h

Sspecial Name GPIO Name GPIO
BUZZER 25 P0 25
BUTTON_A 35 P1 32
BUTTON_B 27 P2 33
RGB_LED 04 P3 13
LIGHT_SENSOR1 36 P4 15
LIGHT_SENSOR2 39 P5 35
TEMPERATURE_SENSOR 34 P6 12
MPU9250_INT 16 P7 14
P8 16
SDA 21 P9 17
SCL 22 P10 26
P11 27
SS 05 P12 02
MOSI 23 P13 18
MISO 19 P14 19
SCK 18 P15 23
P16 05
DAC1 26 P19 22
DAC2 25 P20 21
You can’t perform that action at this time.