Skip to content

Custom deck for two TCS34725 RGB sensors and TCA9548A I2C MUX #462

Answered by tobbeanton
GoLut asked this question in Q&A
Discussion options

You must be logged in to vote

Q1: If the sensors are easy enough to solder without making a PCB design the prototyping deck should do the job.

Q2: There's no deck interface to simply use pin interrupts but you can use the system functions. First find out what pin you would like to use. If e.g. you choose IO1, this is mapped to PB8. EXTI is the STM32 pin interrupt system which you could read up on but in short PB8 is mapped to EXTI interrupt 8. The system already has callback functions for the EXTI interrupts so you have to add this to you deck driver file and also enable it. Use e.g. the uart_syslink.c as an example. Enabling of the interrupt is done here. Hope this gets you started!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GoLut
Comment options

Answer selected by GoLut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants