Skip to content

Instantly share code, notes, and snippets.

@Duckle29
Last active September 22, 2018 18:58
Show Gist options
  • Select an option

  • Save Duckle29/dfc74c173f0ea8f412355814fd0a8e84 to your computer and use it in GitHub Desktop.

Select an option

Save Duckle29/dfc74c173f0ea8f412355814fd0a8e84 to your computer and use it in GitHub Desktop.

Revisions

  1. Duckle29 revised this gist Sep 22, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bar.cpp
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #include "foo.h"
    #include "bar.h"

    bar::bar():
    reader(14)
  2. Duckle29 revised this gist Sep 22, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bar.cpp
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #include "foo.h"

    foo::foo():
    bar::bar():
    reader(14)
    {}

  3. Duckle29 revised this gist Sep 22, 2018. 3 changed files with 18 additions and 1 deletion.
    6 changes: 6 additions & 0 deletions bar.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #include "foo.h"

    foo::foo():
    reader(14)
    {}

    12 changes: 12 additions & 0 deletions bar.h
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #pragma once

    #include "cardreader.h"

    class bar
    {
    public:
    bar();

    protected:
    CardReader reader;
    };
    1 change: 0 additions & 1 deletion foo.cpp
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    #include "foo.h"

    foo::foo():
    BaseController(),
    reader(x)
    {}

  4. Duckle29 revised this gist Sep 22, 2018. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion foo.h
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@

    #pragma once

    #include <controllers/base.h>
    #include "cardreader.h"

    class foo
  5. Duckle29 revised this gist Sep 22, 2018. 1 changed file with 2 additions and 7 deletions.
    9 changes: 2 additions & 7 deletions foo.cpp
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,6 @@
    #include <ArduinoJson.h>
    #include "eeprom_wrapper.h"
    #include "acsrestclient.h"
    #include "controllers/acs.h"
    #include "foo.h"

    #define SERIAL_DBG 1

    ACSController::ACSController():
    foo::foo():
    BaseController(),
    reader(x)
    {}
  6. Duckle29 created this gist Sep 22, 2018.
    12 changes: 12 additions & 0 deletions foo.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #include <ArduinoJson.h>
    #include "eeprom_wrapper.h"
    #include "acsrestclient.h"
    #include "controllers/acs.h"

    #define SERIAL_DBG 1

    ACSController::ACSController():
    BaseController(),
    reader(x)
    {}

    15 changes: 15 additions & 0 deletions foo.h
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@

    #pragma once

    #include <controllers/base.h>
    #include "cardreader.h"

    class foo
    {
    public:
    foo();

    protected:
    CardReader reader;
    const uint8_t x = 14;
    };