• Witaj na Forum Arduino Polska! Zapraszamy do rejestracji!
  • Znajdziesz tutaj wiele informacji na temat hardware / software.
Witaj! Logowanie Rejestracja


Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Funkcja zmiany stanu wyjścia cyfrowego
#1
Witam mam problem z napisaniem pewnej funkcji, 
Chciałbym stworzyć funkcję boolowską z 2 parametrami pin ( numer wejścia/wyjścia cyfrowego) oraz wskaźnik state, który przekazywałby informację o tym jaki stan wyjścia ma być ustawiony. Przed ustawieniem odpowiedniego rejestru PORT(B/D) funkcja sprawdzałaby czy dane wyprowadzenie jest ustawione jako wejście lub wyjście. Funkcja zwraca true jeżeli możliwa jest zmiana stanu wyjścia, inaczej false. Do portu B chciałbym podłączyć switch button, natomiast do portu D diodę LED. 

do tej pory tyle wykminiłem

#include <avr/io.h>
#define Led 4
bool state = true;
uint8_t button;

bool digitalToggle( uint8_t pin, uint8_t * state)
{

PORTD = (*state << 5);
*state = !(*state);
return *state;

return *state;
}
void main(){

DDRB |= 0xF3; // praca jako wejście
DDRD |= 0xFF; // praca jako wyjście

while(1){
button = (PINB & (1 << PINB0)); // odczytanie stanu
if (button == 0)
digitalToggle(PORTD4,&state);
}
}
 
Odpowiedź
#2
As an entrepreneur, it is vital to keep up your standing on the web. These days at whatever point a client or a planned client catches wind of your business, they look digital marketing course in delhi into your business on the web, and just once you have a legitimate online standing, they would be picked in to On the off chance that you are disregarding your online standing, you could never know whether your online standing is positive or negative. That is why you should know about your online standing administration on the off chance you need to develop your business.

[Obrazek: logo.png]

There are numerous manners by which online audits by your clients or tributes can help your business. We would talk about a portion of the manners that would help you develop your business by keeping up your standing on the web.

Empowering Prospective Customers

Higher Rankings on the Review Websites

Client certainty

Client Review

1. Empowering Prospective Customers:

If you are having a lot of good audits from your past clients on your Facebook page or some other such survey sites, at that point, forthcoming clients would website designing company in noida feel more significant in managing your business. This would guarantee that the change rate from to clients is higher for your business, and you would have the option to develop at a quicker speed.

[Obrazek: organic-traffic-diagrams.jpg]

When a client is looking for another business in a specific industry, they don't know about the sort of administration they would get, and they are quite skeptical. In such a circumstance, if they check the past client audits for your business and on the off chance that they are generally unavoidable, they would have more trust in managing your business when contrasted with the matter of your rivals.

2. Higher Rankings On The Review Websites:

As the quantities of cheerful surveys significant for your business expands, the audit sites on which the surveys are posted likewise rank your business employ in your industry. This guarantees that you get more perspectives from your planned clients. A genuine illustration of this is the movement business. If you are positioned profoundly in your class on a webpage like excursion counselor, you will get more perspectives from your imminent clients, and your business would increment as well. Such survey sites give you free focus on traffic and expand your business with no extra SEO costs. This is quite possibly the most focused on wellsprings of traffic which you can pick.

3. Client Confidence:

On the off chance that the client is individual that you are keeping up your online standing through different web-based media channels and audit sites, the client would be agreeable to managing This would construct trust between the client and your business, and hence you can anticipate an immense volume of business from your current customers.

[Obrazek: map.png]

In this way, rather than overlooking the client seo services in gurgaon surveys on the web, you need to give explicit consideration to it to guarantee that you can build your business with the assistance of online client audits, and there are a lot of top SEO offices which can help you in keeping up your standing on the web also.
 
Odpowiedź
  


Skocz do:


Przeglądający: 1 gości