ci: tests for macOS on Gitlab CI
[nit.git] / lib / bcm2835 / bcm2835.nit
index dad9899..d77d134 100644 (file)
@@ -25,11 +25,9 @@ in "C Header" `{
        #include <bcm2835.h>
 `}
 
-redef class Object
-       protected fun bcm2835_init: Bool `{ return bcm2835_init(); `}
-       protected fun bcm2835_close `{ bcm2835_close(); `}
-       protected fun bcm2835_debug=(v: Bool) `{ bcm2835_set_debug(v); `}
-end
+fun bcm2835_init: Bool `{ return bcm2835_init(); `}
+fun bcm2835_close `{ bcm2835_close(); `}
+fun bcm2835_debug=(v: Bool) `{ bcm2835_set_debug(v); `}
 
 # A physical binary pin
 interface Pin
@@ -442,10 +440,10 @@ class HD44780
                                #write(true, "C0".to_hex)
                                # instead we use the following which may not be portable
 
-                               for s in [count..40[ do write(false, ' '.ascii)
+                               for s in [count..40[ do write(false, ' '.code_point)
                                count = 0
                        else
-                               write(false, c.ascii)
+                               write(false, c.code_point)
                                count += 1
                        end
                end