diff --git a/fb/main.go b/fb/main.go index 3838192..7cd29d0 100644 --- a/fb/main.go +++ b/fb/main.go @@ -1,6 +1,10 @@ package fb import ( + "bufio" + "fmt" + "image" + "image/color" "os" ) @@ -10,7 +14,7 @@ var ( ) func resolution() (w int, h int) { - resFile, err := os.File("/sys/class/graphics/fb0/virtual_size") + resFile, err := os.Open("/sys/class/graphics/fb0/virtual_size") if err != nil { panic(err) }