all: fix main package in examples

The package with the main function should always have the name main.
This was not the case in three packages.

This was silently allowed before, but since a TinyGo change
(https://github.com/tinygo-org/tinygo/pull/1592) this now results in a
linker failure.

Perhaps this should result in a better error message in TinyGo. However,
the example code also needs to be fixed, so hence this PR.
This commit is contained in:
Ayke van Laethem
2021-01-27 23:43:01 +01:00
committed by Ron Evans
parent 8cb226938b
commit 5d3ad4ba52
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
package hcsr04 package main
import ( import (
"machine" "machine"
+1 -1
View File
@@ -1,4 +1,4 @@
package ssd1331 package main
import ( import (
"machine" "machine"
+1 -1
View File
@@ -1,4 +1,4 @@
package ssd1351 package main
import ( import (
"machine" "machine"