- This topic has 3 replies, 2 voices, and was last updated 4 years, 10 months ago by .
- You must be logged in to reply to this topic.
Tagged: Arduino, Class declaration
Hello sir
Thank you so much for your help!
In your topic PCF8574 you give as an example a link to a Japanese author “nopnop”.
It’s very interesting, but I’m a novice, and I don’t understand the meaning of this line of code:
Could you explain to me the meaning of the two ::?
PCF8574 :: DigitalInput val = pcf8574.digitalReadAll ();
Slowly please 🙂 like a child
I’m just starting out, and it’s been fifteen days that I browse the websites, and in fact I’m going from one problem to another. the syntax of C is difficult.
Thank you anyway and long life to your blog
Hi Turnoff,
you can understand the syntax when you check the structure of the PCF8574 class:
class PCF8574 {
[...]
struct DigitalInput {
uint8_t p0;
uint8_t p1;
uint8_t p2;
uint8_t p3;
uint8_t p4;
uint8_t p5;
uint8_t p6;
uint8_t p7;
} digitalInput;
[...]
}
there is a structure DigitalInput declared inside the PCF8574 class declaration, so to reference the Object inside It you must use :: notation.
PCF8574::DigitalInput
I hope I was clear.
Bye Renzo
Thank you for answering so quickly
Okay, that’s how it is …
It is beyond me a bit but if it is a rule of writing. I will apply it
Sorry for posting 2 times 🙁
have a good day
Don’t worry Turnoff,
for every doubt or qwestion write a topic without problems.
Bye Renzo
More
Just like a well-organized workbench, this website uses cookies to function properly and efficiently.
🛠️ The Essentials (Necessary): Some cookies are categorized as necessary and are stored on your browser because they are critical for the basic working of the site.
📊 The Analytics (Third-party): We also use third-party cookies to help us analyze traffic and understand which projects you like the most. These are stored only if you give us the green light.
You can choose to opt-out, but keep in mind that disabling them might make the site experience a bit less "smooth".
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
