title: Code porting from Arduino to stm32f100 using STM32Cube IDE
body: <p>I have an Arduino sketch that work perfect on my Arduino Mega 2560 but I should port that code from the Arduino IDE to STM32Cube IDE (eclipse based) because I must use an stm32f100 for my project. I'm new on the stm32 world and not a veteran using eclipse based IDE so it's like I don't know what's the best way to make work the Arduino code on my stm32.
  Considering that I'm using theese 2 libraries on the Arduino IDE:
  <a href="https://github.com/olikraus/u8g2" rel="nofollow noreferrer">https://github.com/olikraus/u8g2</a> for drive my lcd;
  <a href="https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino" rel="nofollow noreferrer">https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino</a> for the modbus protocol.
  I need help to understand what's the best whay to port the code from Arduino to stm32:
  How easy is to do this if it's possible?
  May be better find different libraries written for the stm32 and basically change a lot of my previous code?
  Take in consideration I'm not good using this eclipse based IDE and I have only few notions about HAL.
  Thank you for helping me.</p>