Teste de Tela
Dependencies: BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed
Diff: mcp3201.h
- Revision:
- 2:ae8636da1252
- Parent:
- 0:9b2b74c6af2f
--- a/mcp3201.h Fri Jun 30 20:22:56 2017 +0000 +++ b/mcp3201.h Fri Dec 08 19:17:27 2017 +0000 @@ -16,7 +16,7 @@ // p5 not wired, there are no commands to send for MCP3201 device SPI MCP3201(SPI_MOSI, SPI_MISO, SPI_SCK); // take control from CS pin to avoid transition changes between write commands -DigitalOut cs(PA_7); +DigitalOut cs(PB_8); // Read the analog value from MCP3201. // return 12bit interger (0...4095) int ReadAnalogMCP3201(void)