(with-i2c (str #xyy) always returns nil on arduino due


#1

whatever value of yy , always a nill is given back.
If provided the correct address it works fine , but it looks then something was wrong although it isn’t

Is this a small bug on arduino due ???

Kind regards

Ronny Suy


#2

Found the solution !
Its somewhere on the ulisp pages.
For sam boards , you have to use :
(defun scn ()
(dotimes (p 127)
(with-i2c (str p)
(when (restart-i2c str) (print p)))))

Now it works !

Regards , Ronny


#3