2015-03-17 04:31 AM
Hi, I'm working on STM32F072b discovery board.
I am new to this so I don't know much. I am trying to make the luminosity sensor, TSL2561 with I2C serial bus communicate with my dis.board. Can someone show me step by step of how to do this? And I have some question, Do i need to config I2C port of the STM32 as I2C master? #stm32f072b-discovery-b #tsl25612015-03-17 06:42 AM
That usually makes sense. The MCU is configured as master and the device is slave.
2015-03-17 06:28 PM
Hi MrChips.
Can show me some example code? I saw another thread : https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Discovery%2fI2C2%20configuration&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=39 But I cant find NVIC in the library.