-
Datei
main.c
Byte per SPI rausschieben while(!(SPSR & (1<<SPIF))); // Warten bis SPI fertig ist } unsigned char AS3935_Read(unsigned char address) { AS3935_CS_Low; SPI_MasterTransmit((address & 0b00111111) | 0b01000000); SPI_MasterTransmit(0b00000000); // Dummy clocks to read answer AS3935_CS_High; AS3935_CS_Low; // End Read-Mode (DB 8.4.3 page 15) AS3935_CS_High; while(!(SPSR & (1<<SPIF))); // Wait for reception complete return SPDR; } void AS3935_Write(unsigned char address, unsigned char data) { AS3935_CS_Low; SPI_MasterTransmit(address & 0b00111111
-
PDF
AS3935_AppNote_HardwareDesignGuide_EN_v1.pdf
AS3935 Hardware Design Guide Application Note AS3935 Lightning Sensor Hardware Design Guide www.austriamicrosystems.com www.austriamicrosystems.com Revision 1.00 1 - 3 AS3935 Hardware Design Guide Table of
-
Datei
config-mod-LK511-mt7623n-BPiR2.txt
not set # CONFIG_HP206C is not set # CONFIG_ZPA2326 is not set # # Lightning sensors # # CONFIG_AS3935 is not set # # Proximity and distance sensors # CONFIG_ISL29501=m # CONFIG_LIDAR_LITE_V2 is not set # CONFIG_RFD77402 is not set # CONFIG_SRF04 is not set # CONFIG_SX9500 is not set # CONFIG_SRF08
in „Linux Kernel 5.1.1. auf dem BPi-R2“ · PC Hard- und Software ·