public interface Macro extends MetaWearBoard.Module
Modifier and Type | Interface and Description |
---|---|
static class |
Macro.CodeBlock
Collection of commands to be programmed into the flash memory
|
Modifier and Type | Method and Description |
---|---|
void |
eraseMacros()
Removes all macros on the flash memory.
|
AsyncOperation<java.lang.Void> |
execute(byte macroId)
Executes the commands corresponding to the macro ID
|
AsyncOperation<java.lang.Byte> |
record(Macro.CodeBlock block)
Program a code block to the flash memory
|
AsyncOperation<java.lang.Void> execute(byte macroId)
macroId
- Numerical ID of the macro to executeAsyncOperation<java.lang.Byte> record(Macro.CodeBlock block)
block
- MetaWear commandsvoid eraseMacros()
Debug.resetAfterGarbageCollect()
method.