- Device Type: Digital humidity, pressure, and temperature sensor.
- Interfaces:
- I2C: Up to 3.4 MHz. Slave addresses:
0x76(SDO pin to GND) or0x77(SDO pin to VDDIO). - SPI: 3-wire and 4-wire support, up to 10 MHz. Supports SPI modes '00' (CPOL=0, CPHA=0) and '11' (CPOL=1, CPHA=1).
- I2C: Up to 3.4 MHz. Slave addresses:
- SPI Address Format: The 7-bit register address is shifted. Bit 7 is the Read/Write bit (
0for Write,1for Read). Example: To write to0xF4, use SPI address0x74. To read0xF4, use0xF4. - I2C Transaction:
- Write: [Slave Addr + W] -> [Reg Addr] -> [Data].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import cv2 | |
| import imutils | |
| template = cv2.imread('template.jpg') # template image | |
| image_o = cv2.imread('image.jpg') # image | |
| template = cv2.cvtColor(template, cv2.COLOR_BGR2GRAY) | |
| image = cv2.cvtColor(image_o, cv2.COLOR_BGR2GRAY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Connect weixin with HWIOAuthBundle package. | |
| * | |
| * Yplam <yplam@yplam.com> | |
| * | |
| */ | |
| namespace AppBundle\OAuth\ResourceOwner; |