Skip to content
Snippets Groups Projects
Commit 9edaba65 authored by Severin Landwein's avatar Severin Landwein
Browse files

split header and source

parent 1476f1ae
No related branches found
No related tags found
No related merge requests found
...@@ -12,14 +12,25 @@ uint8_t ClassForDemonstration::get_member_1() { ...@@ -12,14 +12,25 @@ uint8_t ClassForDemonstration::get_member_1() {
return member_example_1; return member_example_1;
} }
uint8_t ClassForDemonstration::getMember2() {
return memberExample2;
}
void ClassForDemonstration::set_member_1(uint8_t value) { void ClassForDemonstration::set_member_1(uint8_t value) {
member_example_1 = value; member_example_1 = value;
} }
void ClassForDemonstration::setMember2(uint8_t value) {
memberExample2 = value;
}
void ClassForDemonstration::serial_out_object(Stream &stream) { void ClassForDemonstration::serial_out_object(Stream &stream) {
stream.print(get_member_1()); stream.print(get_member_1());
stream.print("\t");
stream.print(getMember2());
} }
void ClassForDemonstration::fill_object() { void ClassForDemonstration::fill_object() {
set_member_1(millis()); set_member_1(millis());
setMember2(millis());
} }
\ No newline at end of file
...@@ -9,10 +9,13 @@ class ClassForDemonstration ...@@ -9,10 +9,13 @@ class ClassForDemonstration
{ {
private: private:
uint8_t member_example_1; uint8_t member_example_1;
uint8_t memberExample2;
public: public:
uint8_t get_member_1() { return member_example_1; }; uint8_t get_member_1();
void set_member_1(uint8_t aValue) { member_example_1 = aValue; }; uint8_t getMember2();
void set_member_1(uint8_t value);
void setMember2(uint8 value);
void serial_out_object(Stream &stream); void serial_out_object(Stream &stream);
void fill_object(); void fill_object();
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment