-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add API_ru #2
base: main
Are you sure you want to change the base?
add API_ru #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделай правки, которые мы обсудили.
Внесение изменений |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лови правки
API_ru.md
Outdated
@@ -0,0 +1,23 @@ | |||
# AmperkaLed API (RUS) | |||
|
|||
## `class led(int pin)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## `class led(int pin)` | |
## `class LED(uint8_t pin)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Название класса всегда пишется с заглавной буквы. А т.е.
LED
это сокращенная запись ставим все заглавные. - Вряд ли номер пина будет больше 255.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
@@ -0,0 +1,23 @@ | |||
# AmperkaLed API (RUS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# AmperkaLed API (RUS) | |
# AmperkaLED API (RUS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вроде так же назвали репу
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
|
||
## `class led(int pin)` | ||
Создайте объект класса `led` для работы со светодиодом. | ||
Светодиод будет управляться напряждением, подаваемым на пин Arduino, к которому подключен светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Светодиод будет управляться напряждением, подаваемым на пин Arduino, к которому подключен светодиод. | |
Светодиод будет управляться напряжением, подаваемым на пин Arduino, к которому подключен светодиод. |
Прогани весь текст на грамматические ошибки.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
## `class led(int pin)` | ||
Создайте объект класса `led` для работы со светодиодом. | ||
Светодиод будет управляться напряждением, подаваемым на пин Arduino, к которому подключен светодиод. | ||
- `pin`: указывается номер пина, к которому подключен светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `pin`: указывается номер пина, к которому подключен светодиод. | |
- `pin`: номер пина, к которому подключен светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
- `pin`: указывается номер пина, к которому подключен светодиод. | ||
|
||
### `ledOn()` | ||
Функция объекта `led`, пшепозволяющая включить светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Функция объекта `led`, пшепозволяющая включить светодиод. | |
Включает светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
### `ledSet(bool state)` | ||
Функция объекта `led`, инвертирующая состояние светодиода. | ||
|
||
### `ledPWM(uint8_t value)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### `ledPWM(uint8_t value)` | |
### `ledBrightness(uint8_t value)` |
Так явно лучше
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
Функция объекта `led`, инвертирующая состояние светодиода. | ||
|
||
### `ledPWM(uint8_t value)` | ||
Функция объекта `led`, позволяющая управлять яркостью светодиода. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Функция объекта `led`, позволяющая управлять яркостью светодиода. | |
Устанавливает яркость свечения. Доступный диапазон значений яркости от `0` до `255`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Указываем допустимые значения
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
Светодиод будет управляться напряждением, подаваемым на пин Arduino, к которому подключен светодиод. | ||
- `pin`: указывается номер пина, к которому подключен светодиод. | ||
|
||
### `ledOn()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### `ledOn()` | |
### `turnOn()` |
И так понятно, что у нас это светодиод. Сравни два кода:
// Создаём объект
LED led(3);
// Включаем светодиод
led.turnOn();
// Создаём объект
LED led(3);
// Включаем светодиод
led.ledOn();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
### `ledOn()` | ||
Функция объекта `led`, пшепозволяющая включить светодиод. | ||
|
||
### `ledOff()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### `ledOff()` | |
### `turnOff()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Уже описал выше.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
### `ledPWM(uint8_t value)` | ||
Функция объекта `led`, позволяющая управлять яркостью светодиода. | ||
|
||
### `ledToogle(float timeOn, float timeOff)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем тут тип данных float
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправил
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Внёс правки
API_ru.md
Outdated
@@ -0,0 +1,23 @@ | |||
# AmperkaLed API (RUS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
@@ -0,0 +1,23 @@ | |||
# AmperkaLed API (RUS) | |||
|
|||
## `class led(int pin)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
|
||
## `class led(int pin)` | ||
Создайте объект класса `led` для работы со светодиодом. | ||
Светодиод будет управляться напряждением, подаваемым на пин Arduino, к которому подключен светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
## `class led(int pin)` | ||
Создайте объект класса `led` для работы со светодиодом. | ||
Светодиод будет управляться напряждением, подаваемым на пин Arduino, к которому подключен светодиод. | ||
- `pin`: указывается номер пина, к которому подключен светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
Светодиод будет управляться напряждением, подаваемым на пин Arduino, к которому подключен светодиод. | ||
- `pin`: указывается номер пина, к которому подключен светодиод. | ||
|
||
### `ledOn()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
Функция объекта `led`, позволяющая выключить светодиод. | ||
|
||
### `ledSet(bool state)` | ||
Функция объекта `led`, инвертирующая состояние светодиода. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
### `ledSet(bool state)` | ||
Функция объекта `led`, инвертирующая состояние светодиода. | ||
|
||
### `ledPWM(uint8_t value)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
Функция объекта `led`, инвертирующая состояние светодиода. | ||
|
||
### `ledPWM(uint8_t value)` | ||
Функция объекта `led`, позволяющая управлять яркостью светодиода. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
- `pin`: указывается номер пина, к которому подключен светодиод. | ||
|
||
### `ledOn()` | ||
Функция объекта `led`, пшепозволяющая включить светодиод. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принял
API_ru.md
Outdated
### `ledPWM(uint8_t value)` | ||
Функция объекта `led`, позволяющая управлять яркостью светодиода. | ||
|
||
### `ledToogle(float timeOn, float timeOff)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправил
Создал API_ru