Search results

  1. fukurou

    👨‍💻 dev arduino cheat sheet codes

    classes: class Led{ private: byte pin; public: Led(){this->pin = 13;} Led(byte pin){ this->pin = pin; } void init(){ pinMode(pin, OUTPUT); } void on(){ digitalWrite(pin, HIGH); } void off(){ digitalWrite(pin, LOW); } }; Led led1; //...
  2. fukurou

    👨‍💻 dev arduino cheat sheet codes

    conditionals if (condition) {} else if (condition2) {} else {} /* Find max(a, b): */ max = ( a > b ) ? a : b; functions int triple(int a){ return a *3; } //int arr[array_size] // to pass array param int times(int a, int b){ return a * b; } random int randNumber; void setup() {...
  3. fukurou

    👨‍💻 dev arduino cheat sheet codes

    variables int led = 13; // implicit var declaration bool ledState1 = false; const float pi = 3.14; #define c1 4 // const declaration String s = "hello"; N-dimentional arrays int b[ 2 ][ 2 ] = { { 1, 2 }, { 3, 4 } }; int b[ 2 ][ 2 ]; b[0][0] = 10;// item in array loops for(int i=0; i<7; i++)...
  4. fukurou

    [MEDIA]

  5. fukurou

    and I wonder

    Arduino UNO has 32kB of Flash memory which is sufficient to write thousands of lines of code. Normally while writing Arduino code SRAM is the most valuable memory on Arduino boards. Arduino UNO has only 2kB of SRAM which equals 2048 bytes.
  6. fukurou

    and I wonder

  7. fukurou

    and I wonder

    an arduino is a supplementary element but still, can it carry an entire LG?
  8. fukurou

    and I wonder

    is there merit to running a LivinGrimoire only on an Arduino?
  9. fukurou

    ⚡ arduino add library

  10. fukurou

    👨‍💻 dev c++ cheat sheet

    void /*LMAO look where I can put a comment*/ loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(LED_BUILTIN, LOW); delay(1000); // Wait for 1000 millisecond(s) }
  11. fukurou

    [MEDIA]

  12. fukurou

    [MEDIA]

  13. fukurou

    [MEDIA]

  14. fukurou

    👨‍💻 dev AXPython pt2

    class TrgSnooze(TrGEV3): # this boolean gate will return true per minute interval # max repeats times. def __init__(self, maxRepeats: int): super().__init__() self._repeats: int = 0 self._maxRepeats: int = maxRepeats self._snooze: bool = True...
  15. fukurou

    👨‍💻 dev AXPython pt2

  16. fukurou

    👨‍💻 dev AXPython pt2

    class TrgParrot: # simulates a parrot chirp trigger mechanism # as such this trigger is off at night # in essence this trigger says: I am here, are you here? good. def __init__(self, limit: int): super().__init__() temp_lim: int = 3 if limit > 0...
  17. fukurou

    👨‍💻 dev AXPython pt2

    class TrgMinute(TrGEV3): # trigger true at minute once per hour def __init__(self): super().__init__() self._hour1: int = -1 self._minute: int = random.randint(0, 60) self.pgrd: PlayGround = PlayGround() def setMinute(self, minute): if -1 <...
  18. fukurou

    👨‍💻 dev AXPython pt2

    class SpiderSense: # enables event prediction def __init__(self, lim: int): super().__init__() self._spiderSense: bool = False self._events: UniqueItemSizeLimitedPriorityQueue = UniqueItemSizeLimitedPriorityQueue(lim) self._alerts...
  19. fukurou

    [MEDIA]

  20. fukurou

    bruce lee

    it looks like a good game but the buttons are problematic this is why I prefer MK11
Top