Commits

tuck...@gmail.com  committed 6e6dcc9 Draft

doc change and elias reference repeated

  • Participants
  • Parent commits 532512c

Comments (0)

Files changed (1)

File src/platform/stm32f4/wire.py

 # and STM32F4 board.
 # this module just wrap the work of Torrentula inside python
 # method. Like every time python is a glue :)
-# thx Torrentula
+# thx elias blog !
+# reference : http://eliaselectronics.com/
+# repository reference
 # https://github.com/Torrentula/STM32F4-examples/blob/master/I2C%20Master/main.c
+# 
 # for the moment we only address I2C1 peripheral (this simplify argument work :)
+# TODO : we should allow user to specify pin tuple.
 #
 # stm32F4 can have three peripheral I2C : I2C1, I2C2 and I2C3 as declared in
 # stm32f4xx.h !
+# for using I2C1 you could use two different pairs of pins :
+#               (PB6 => SCL, PB7 => SDA)
+#               (PB8 => SCL, PB9 => SDA)
 #
+# for using I2C2 you could use two different pairs of pins :
+#               (PB10 => SCL, PB11 => SDA)
+#               UNFINISHED
+#
+# for using I2C3 you could use two different pairs of pins :
+#               UNFINISHED
+#               UNFINISHED
+
 """__NATIVE__
 #include "stm32f4xx_i2c.h"