AnsweredAssumed Answered

Code translation

Question asked by ted korczak on Jun 11, 2018
Latest reply on Jun 12, 2018 by ted korczak

How to change arduino uno code to STM32F103

void setup(){ pinMode(9,OUTPUT); pinMode(10,OUTPUT); TCCR1B = (1<<WGM13)|(1<<CS10);  TCCR1A = (1<<COM1A1)|(1<<COM1B1)|(1<<COM1B0);  TIMSK1 = 1<<TOIE1; ICR1=511;  OCR1B=0; }   ISR (TIMER1_OVF_vect) { static uint8_t  n=0; OCR1A =  OCR1B= sine_wave[n]; n++; }  void loop(){ }