Skip to content

Troubles getting Pro Micro to run #4891

Open
@JuLi0n21

Description

@JuLi0n21

Hello TinyGo team,

Im currently struggling getting this Pro Micro to run. (datasheet)

I managed to flash to the mcu using the arduino-leonardo configuration but it seems to be doing nothing at all.

i started with a blinky script migrated from code written in arduino IDE, which also detects the board as arduino-leonardo.

i saw and experienced the same issue described in this issue

tinygo code:

package main

import (
	"machine"
	"time"
)

func main() {
	rxLed := machine.Pin(17)
	txLed := machine.Pin(30)

	rxLed.Configure(machine.PinConfig{Mode: machine.PinOutput})
	txLed.Configure(machine.PinConfig{Mode: machine.PinOutput})

	for {
		rxLed.High()
		txLed.Low()
		time.Sleep(300 * time.Millisecond)

		rxLed.Low()
		txLed.High()
		time.Sleep(300 * time.Millisecond)
	}
}

original arduino code:

int RXLED = 17; 
int TXLED = 30; 

void setup() {
  
  pinMode(RXLED, OUTPUT);
  pinMode(TXLED, OUTPUT);
}

void loop() {
  digitalWrite(RXLED, HIGH);
  digitalWrite(TXLED, LOW);
  delay(300);
  digitalWrite(RXLED, LOW);
  digitalWrite(TXLED, HIGH);
  delay(300);
}

flash command:
tinygo flash -target arduino-leonardo -no-debug main.go

i would be willing to create the missing pieces but i honestly dont even know where to start

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about usage of TinyGo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions