Posted on September 14, 2015 at 20:00
Hi,
I'm using a servo with a pwm connection and this is a part of code:
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOB, ENABLE);
GPIO_PinAFConfig(GPIOB, GPIO_PinSource4, GPIO_AF_1);
GPIO_InitTypeDef GPI...
Posted on August 06, 2015 at 13:19
Hello,
I need use a port both input and output. What should I do?
Should I use something like this?
GPIO_InitTypeDef GPIO_InitStructure;
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE);
GPIO_Ini...
Posted on August 03, 2015 at 18:05
Hello,
I'm using theSTM32F030R8T6 microcontroller and IAR IDE.
The following is a part of code that I'm using:
USART_InitTypeDef USART_InitStructure;
GPIO_InitTypeDef GPIO_InitStructure;
R...
Posted on August 11, 2015 at 18:17
I'm trying to use this:http://playground.arduino.cc/Main/ParallaxH48C
It works, i used with an other library.
Part of my code is:
#define DIO GPIO_Pin_5
#define DIO_TYPE GPIOB
#define CLK GPIO_Pin...
Posted on August 10, 2015 at 19:33 I'm trying to use anHitachi 3 Axis AccelerometerH48C and I can only use a DIO port. I really only need to change an input port to output port and vice-versa. This is my code: void Pin_Mode(int direction, G...
Posted on August 06, 2015 at 17:22How can I change dynamically pin direction? ie input to output or output to inputShould I initialize, deinitialize and reinitialize the port every time?