Search found 5 matches

by ales.coppelli
Sun Sep 16, 2018 9:45 am
Forum: Other Boards
Topic: [STM32F411E-DISCO] Giroscope and accelerometer in STM32F411E-DISCO
Replies: 4
Views: 176

Re: [STM32F411E-DISCO] Giroscope and accelerometer in STM32F411E-DISCO

Thank you for your answer. No, my hardware is different ( STM32F411-DISCO ). I found in "ports/stm/boards/STM32F4DISCO" the class STAccel and I put it in 'boot.py' file. When I try >>> a = STAccell() I obtain Traceback error: Exception: LIS302DL or LIS3DSH accelerometer not present and... is correct...
by ales.coppelli
Sat Sep 15, 2018 6:19 pm
Forum: Other Boards
Topic: [STM32F411E-DISCO] Giroscope and accelerometer in STM32F411E-DISCO
Replies: 4
Views: 176

[STM32F411E-DISCO] Giroscope and accelerometer in STM32F411E-DISCO

Hi to all.

I have installed latest MiicroPython in STM32F411E-DISCO board.

Are there classes for handle giroscope and/or accelerometer ?

I trayed

>>> dir(machine) and dir(pyb)

but I don't saw any class 'giro' and/or 'accel'.

Someone can help me ?

Thanks
by ales.coppelli
Thu Aug 09, 2018 9:59 pm
Forum: Other Boards
Topic: STM32F4 Discovery
Replies: 2
Views: 278

Re: STM32F4 Discovery

Thank you very much. I rebuild the firmware.dfu with the #define row after I had modified mpconfigboard.h ( and uploaded the new version of micropython into the board) .Now there is the Servo class ( when I ask >>>help(pyb) ) . I saw in micropython/ports/stm32/boards/STM32F4DISC/staccell.py file and...
by ales.coppelli
Wed Aug 08, 2018 9:42 am
Forum: Other Boards
Topic: STM32F4 Discovery
Replies: 2
Views: 278

STM32F4 Discovery

Hi to all. I have installed MiicroPython( v1.9.4-442-g17b5120) on STM32F4 Discovery board ( STM32F407 VGT6 ) . I can see many class from 'help(pyb)' command ( rng,Switch,Flash, Led, I2C,SPI,UART,ADC,DAC,ecc .ecc. ) but I don't see 'Servo' and 'Accel' class. Indeed if I try: >>>from pyb import Servo ...