O Google tem o compromisso de promover a igualdade racial para as comunidades negras.
Saiba como.
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
light_state_t Struct Reference
#include <
lights.h
>
The parameters that can be set for a given light.
Not all lights must support all parameters. If you can do something backward-compatible, you should.
Definition at line
145
of file
lights.h
.
Policy used by the framework to manage the light's brightness. Currently the values are BRIGHTNESS_MODE_USER and BRIGHTNESS_MODE_SENSOR.
Definition at line
173
of file
lights.h
.
The color of the LED in ARGB.
Do your best here.
-
If your light can only do red or green, if they ask for blue, you should do green.
-
If you can only do a brightness ramp, then use this formula: unsigned char brightness = ((77*((color>>16)&0x00ff))
-
(150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8;
-
If you can only do on or off, 0 is off, anything else is on.
The high byte should be ignored. Callers will set it to 0xff (which would correspond to 255 alpha).
Definition at line
160
of file
lights.h
.
See the LIGHT_FLASH_* constants
Definition at line
165
of file
lights.h
.
The documentation for this struct was generated from the following file:
-
hardware/libhardware/include/hardware/
lights.h
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2019-10-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Não contém as informações de que eu preciso"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Muito complicado / etapas demais"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Desatualizado"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problema na tradução"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problema com as amostras / o código"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Outro"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Fácil de entender"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Meu problema foi resolvido"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Outro"
}]
{"lastModified": "\u00daltima atualiza\u00e7\u00e3o 2019-10-02 UTC."}
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2019-10-02 UTC."]]