locking arduino funcs.