1. To illustrate the process of turning your code into a re-usable 'private' library, the code to flash a single led will be used, BasicFlashingLed.ino Put the ... 2. The first step to creating you own library is to break out the actions into their own methods that your sketch can call. FlashingLedMethods.ino defines four (4) methods:- togglePinInit(), stopTogglingPin(), startTogglingPin() and handleTogglingPin()… 3. Now that you have separated the flashing actions into their own methods, you can move those methods to their own .cpp/h files and just add these to each ...
確定! 回上一頁