Skip to content

Commit ca915f8

Browse files
per1234robsoncouto
authored andcommitted
Document syntax for types where missing
Some of the type reference pages had syntax documentation, others didn't.
1 parent 249dcb7 commit ca915f8

File tree

7 files changed

+77
-0
lines changed

7 files changed

+77
-0
lines changed

Language/Variables/Data Types/bool.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ O tipo `bool` pode armazenar dois valores: `true` or `false`. (Cada variável `b
1616

1717
[%hardbreaks]
1818

19+
20+
[float]
21+
=== Syntax
22+
`bool var = val;`
23+
24+
25+
[float]
26+
=== Parameters
27+
`var`: variable name +
28+
`val`: the value to assign to that variable
29+
1930
--
2031
// OVERVIEW SECTION ENDS
2132

Language/Variables/Data Types/byte.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ subCategories: [ "Tipos de Dados" ]
1515
Uma variável 'byte' armazena valores numéricos de 8-bit sem sinal, de 0 a 255.
1616
[%hardbreaks]
1717

18+
19+
[float]
20+
=== Syntax
21+
`byte var = val;`
22+
23+
24+
[float]
25+
=== Parameters
26+
`var`: variable name +
27+
`val`: the value to assign to that variable
28+
1829
--
1930
// OVERVIEW SECTION ENDS
2031

Language/Variables/Data Types/char.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ No entanto, caracteres são armazenados como números. Você pode ver a codifica
1919
O tipo de dado char é um tipo com sinal, armazenando números de -128 a 127. Para um tipo de dado sem sinal, de um byte (8 bits), use o tipo de dado _byte_.
2020
[%hardbreaks]
2121

22+
23+
[float]
24+
=== Syntax
25+
`char var = val;`
26+
27+
28+
[float]
29+
=== Parameters
30+
`var`: variable name +
31+
`val`: the value to assign to that variable
32+
2233
--
2334
// OVERVIEW SECTION ENDS
2435

Language/Variables/Data Types/double.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ Número de Ponto flutuante Double. No UNO e outras placas baseadas no ATMEGA, oc
1717
No Arduino Due e outras placas com SAMD, doubles usam 8 bytes, ou seja, precisão de 64 bits.
1818
[%hardbreaks]
1919

20+
21+
[float]
22+
=== Syntax
23+
`double var = val;`
24+
25+
26+
[float]
27+
=== Parameters
28+
`var`: variable name +
29+
`val`: the value to assign to that variable
30+
2031
--
2132
// OVERVIEW SECTION ENDS
2233

Language/Variables/Data Types/size_t.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ subCategories: [ "Data Types" ]
1515
`size_t` é um tipo de dado capaz de representar o tamanho de qualquer objeto em bytes. Exemplos do uso de `size_t` são o tipo do retorno de link:../../utilities/sizeof[sizeof()] e link:../../../functions/communication/serial/print[Serial.print()].
1616
[%hardbreaks]
1717

18+
19+
[float]
20+
=== Syntax
21+
`size_t var = val;`
22+
23+
24+
[float]
25+
=== Parameters
26+
`var`: variable name +
27+
`val`: the value to assign to that variable
28+
1829
--
1930
// OVERVIEW SECTION ENDS
2031

Language/Variables/Data Types/unsignedChar.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ Um tipo de dado sem sinal, que ocupa um byte na memória. O mesmo que o tipo de
1818
Para consistência do estilo de programação Arduino, o tipo de dado byte é preferido.
1919
[%hardbreaks]
2020

21+
22+
[float]
23+
=== Syntax
24+
`unsigned char var = val;`
25+
26+
27+
[float]
28+
=== Parameters
29+
`var`: variable name +
30+
`val`: the value to assign to that variable
31+
2132
--
2233
// OVERVIEW SECTION ENDS
2334

Language/Variables/Data Types/word.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ subCategories: [ "Tipos de Dados" ]
1515
Uma variável word armazena um número sem sinal de 16 bits, de 0 A 65535. O mesmo que uma variável unsigned int.
1616
[%hardbreaks]
1717

18+
19+
[float]
20+
=== Syntax
21+
`word var = val;`
22+
23+
24+
[float]
25+
=== Parameters
26+
`var`: variable name +
27+
`val`: the value to assign to that variable
28+
1829
--
1930
// OVERVIEW SECTION ENDS
2031

0 commit comments

Comments
 (0)