Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
var Hyperloop = require('hyperloop'); | |
var UIView = require('UIView'); | |
var CGRect = require('CGRect'); | |
var CGPoint = require('CGPoint'); | |
var UIColor = require('UIColor'); | |
var UIBezierPath = require('UIBezierPath'); | |
function DEGREES_TO_RADIANS(angle) { return (Number(angle) / 180.0 * Math.PI) }; | |
/// This gist assumes that Flutter Blue (https://github.com/pauldemarco/flutter_blue) is used to connect to a BBC Micro:bit | |
/// and is listening to the [device.onValueChanged] for the correct characteristic ("E95DCA4B-251D-470A-A062FA1922DFA9A8") | |
/// | |
/// this will be something similar to | |
/// | |
/// device.onValueChanged( (accChar).listen( (value){ convertRawData(value)})); | |
/// | |
/// the 'raw' listen value is a List<int> of length 6 this needs to be converted into the X,Y and Z values from the | |
/// accelerometer and is done with the function below | |
/// |