Compare commits
No commits in common. "efcf6a16316ab5cd278e1ef06ec5f6ee04d1b1db" and "dfd4b1b3fad6bf57437be4f9b9d3a036186ec7ab" have entirely different histories.
efcf6a1631
...
dfd4b1b3fa
17
README.md
17
README.md
@ -22,27 +22,16 @@ Possible choices :
|
||||
* MPU6050
|
||||
* BMI160
|
||||
* LSM6DS3
|
||||
* BMA456 <-- SELECTED i2c addr : 0x18 or 0x19 7 bit address, has the wrist tilt detection feature.
|
||||
* A magnetometer (possible choices):
|
||||
* HMC5883L <-- SELECTED i2c addr : 0x1E 7 bit address, better soldering footprint
|
||||
* A magnetometer :
|
||||
* HMC5883L
|
||||
* QMC5883L
|
||||
* LSM303DLHC
|
||||
* BMM150 <-- Package with balls, hard to handle
|
||||
* An air pressure/temperature sensor (to display the altitude for example)
|
||||
* BMP280 <-- SELECTED i2c addr : 0x76 or 0x77
|
||||
* BMP280
|
||||
|
||||
## Actuators :
|
||||
* A vibration motor to notify events to the user.
|
||||
|
||||
## Power source :
|
||||
* 1 cell lipo battery
|
||||
* A charge controller
|
||||
|
||||
## Screen + touch element :
|
||||
* Screen with touch : STP240240_R130A1(T), SPI interface 240*240 px, ST7789V driver.
|
||||
* Touch element i2c addr : 0x46, IT7257 I2C touch driver
|
||||
|
||||
|
||||
## MCU Pin assignement table :
|
||||
| Pin Number | Pin Name | Type | Function | Pull UP/DOWN| Connected to | Comment |
|
||||
|------------|----------|------|----------|-------------|--------------|---------|
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1,102 +0,0 @@
|
||||
HW_Reset();
|
||||
|
||||
Delay(120);
|
||||
|
||||
Write(Command , 0x11);
|
||||
|
||||
Delay(120);
|
||||
|
||||
Write(Command , 0x36);
|
||||
Write(Parameter , 0x00);
|
||||
|
||||
Write(Command , 0x3A);
|
||||
Write(Parameter , 0x05);
|
||||
|
||||
Write(Command , 0xB2);
|
||||
Write(Parameter , 0x0C);
|
||||
Write(Parameter , 0x0C);
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0x33);
|
||||
Write(Parameter , 0x33);
|
||||
|
||||
Write(Command , 0xB7);
|
||||
Write(Parameter , 0x72);
|
||||
|
||||
Write(Command , 0xBB);
|
||||
Write(Parameter , 0x3D); //Vcom=1.625V
|
||||
|
||||
Write(Command , 0xC2);
|
||||
Write(Parameter , 0x01);
|
||||
|
||||
Write(Command , 0xC3);
|
||||
Write(Parameter , 0x19); //GVDD=4.8V
|
||||
|
||||
Write(Command , 0xC4);
|
||||
Write(Parameter , 0x20); //VDV, 0x20:0v
|
||||
|
||||
Write(Command , 0xC6);
|
||||
Write(Parameter , 0x0F); //0x0F:60Hz
|
||||
|
||||
Write(Command , 0xD0);
|
||||
Write(Parameter , 0xA4);
|
||||
Write(Parameter , 0xA1);
|
||||
|
||||
Write(Command , 0xE0);
|
||||
Write(Parameter , 0x70);
|
||||
Write(Parameter , 0x04);
|
||||
Write(Parameter , 0x08);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x05);
|
||||
Write(Parameter , 0x2A);
|
||||
Write(Parameter , 0x33);
|
||||
Write(Parameter , 0x41);
|
||||
Write(Parameter , 0x07);
|
||||
Write(Parameter , 0x13);
|
||||
Write(Parameter , 0x13);
|
||||
Write(Parameter , 0x29);
|
||||
Write(Parameter , 0x2F);
|
||||
|
||||
Write(Command , 0xE1);
|
||||
Write(Parameter , 0x70);
|
||||
Write(Parameter , 0x03);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x0A);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x06);
|
||||
Write(Parameter , 0x2B);
|
||||
Write(Parameter , 0x34);
|
||||
Write(Parameter , 0x41);
|
||||
Write(Parameter , 0x07);
|
||||
Write(Parameter , 0x12);
|
||||
Write(Parameter , 0x14);
|
||||
Write(Parameter , 0x28);
|
||||
Write(Parameter , 0x2E);
|
||||
|
||||
|
||||
Write(Command , 0x21);
|
||||
|
||||
Write(Command , 0x29);
|
||||
|
||||
|
||||
|
||||
Write(Command , 0x2A); //Column Address Set
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0x00); //0
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0xEF); //239
|
||||
|
||||
Write(Command , 0x2B); //Row Address Set
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0x00); //0
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0xEF); //239
|
||||
|
||||
Write(Command , 0x2C);
|
||||
|
||||
/*唤醒光圈,进入睡眠需要这样写
|
||||
Write(Command , 0x28);
|
||||
Write(Command , 0x10);
|
||||
Write(Command , 0xD6);
|
||||
Write(Parameter , 0xA1);
|
||||
*/
|
File diff suppressed because it is too large
Load Diff
@ -1,102 +0,0 @@
|
||||
HW_Reset();
|
||||
|
||||
Delay(120);
|
||||
|
||||
Write(Command , 0x11);
|
||||
|
||||
Delay(120);
|
||||
|
||||
Write(Command , 0x36);
|
||||
Write(Parameter , 0x00);
|
||||
|
||||
Write(Command , 0x3A);
|
||||
Write(Parameter , 0x05);
|
||||
|
||||
Write(Command , 0xB2);
|
||||
Write(Parameter , 0x0C);
|
||||
Write(Parameter , 0x0C);
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0x33);
|
||||
Write(Parameter , 0x33);
|
||||
|
||||
Write(Command , 0xB7);
|
||||
Write(Parameter , 0x72);
|
||||
|
||||
Write(Command , 0xBB);
|
||||
Write(Parameter , 0x3D); //Vcom=1.625V
|
||||
|
||||
Write(Command , 0xC2);
|
||||
Write(Parameter , 0x01);
|
||||
|
||||
Write(Command , 0xC3);
|
||||
Write(Parameter , 0x19); //GVDD=4.8V
|
||||
|
||||
Write(Command , 0xC4);
|
||||
Write(Parameter , 0x20); //VDV, 0x20:0v
|
||||
|
||||
Write(Command , 0xC6);
|
||||
Write(Parameter , 0x0F); //0x0F:60Hz
|
||||
|
||||
Write(Command , 0xD0);
|
||||
Write(Parameter , 0xA4);
|
||||
Write(Parameter , 0xA1);
|
||||
|
||||
Write(Command , 0xE0);
|
||||
Write(Parameter , 0x70);
|
||||
Write(Parameter , 0x04);
|
||||
Write(Parameter , 0x08);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x05);
|
||||
Write(Parameter , 0x2A);
|
||||
Write(Parameter , 0x33);
|
||||
Write(Parameter , 0x41);
|
||||
Write(Parameter , 0x07);
|
||||
Write(Parameter , 0x13);
|
||||
Write(Parameter , 0x13);
|
||||
Write(Parameter , 0x29);
|
||||
Write(Parameter , 0x2F);
|
||||
|
||||
Write(Command , 0xE1);
|
||||
Write(Parameter , 0x70);
|
||||
Write(Parameter , 0x03);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x0A);
|
||||
Write(Parameter , 0x09);
|
||||
Write(Parameter , 0x06);
|
||||
Write(Parameter , 0x2B);
|
||||
Write(Parameter , 0x34);
|
||||
Write(Parameter , 0x41);
|
||||
Write(Parameter , 0x07);
|
||||
Write(Parameter , 0x12);
|
||||
Write(Parameter , 0x14);
|
||||
Write(Parameter , 0x28);
|
||||
Write(Parameter , 0x2E);
|
||||
|
||||
|
||||
Write(Command , 0x21);
|
||||
|
||||
Write(Command , 0x29);
|
||||
|
||||
|
||||
|
||||
Write(Command , 0x2A); //Column Address Set
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0x00); //0
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0xEF); //239
|
||||
|
||||
Write(Command , 0x2B); //Row Address Set
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0x00); //0
|
||||
Write(Parameter , 0x00);
|
||||
Write(Parameter , 0xEF); //239
|
||||
|
||||
Write(Command , 0x2C);
|
||||
|
||||
/*唤醒光圈,进入睡眠需要这样写
|
||||
Write(Command , 0x28);
|
||||
Write(Command , 0x10);
|
||||
Write(Command , 0xD6);
|
||||
Write(Parameter , 0xA1);
|
||||
*/
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user