hddled_tmj33 | linux module for controlling the HDD LEDs
kandi X-RAY | hddled_tmj33 Summary
kandi X-RAY | hddled_tmj33 Summary
Kernel module to control HDD LEDs on Terramaster NAS that run on Intel Celeron J33xx. I got the source code for module named led_drv_TMJ33 that was running on my F2-221's TOS 4.1 by emailing their support email. That module gives the ability to control the two HDD LEDs on that NAS (up to 5 on F5-221). I didn't like TOS and wanted to run any Linux distro on the NAS which is why I asked for the source code. The led_drv_TMJ33 module (the one provided by Terramaster support) creates char devices /dev/leddrv[1-10] that you can pipe into "led[1-10]on" and "led[1-10]off". However they don't do any tracking on which char device the user is writing into, meaning echo led2on > /dev/leddrv5 will actually turn on led2, so will echo led2on > /dev/leddrv3. I didn't like that interface so I wrote my own with the original one as reference on how to interface with the hardware. It finds the base address of the device that has the relevant GPIO pins that control the LEDs. This is done in function read_base. That address is stored in base in the following explanation. The module ioremaps address with hardcoded offset from base as follows. Green color of physical HDD LED[1-5] is connected to the first 5 in the list above (odd numbers in 1-9). Red color of physical HDD LED[1-5] is connected to the last 5 in the list above (even numbers in 2-10). So the green color of the physical HDD LEDs are offset of base in 0x8 intervals (starting at base+0xC505B8) and the red color are offset +0x28 from the green color of the same physical LED. This module creates char devices /dev/hddled[1-5]. Each device can only control a single LED. You can write [0-3] into them to control the LED in question.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hddled_tmj33
hddled_tmj33 Key Features
hddled_tmj33 Examples and Code Snippets
Community Discussions
Trending Discussions on Internet of Things (IoT)
QUESTION
I have js files Dashboard and Adverts. I managed to get Dashboard to list the information in one json file (advertisers), but when clicking on an advertiser I want it to navigate to a separate page that will display some data (Say title and text) from the second json file (productadverts). I can't get it to work. Below is the code for the Dashboard and next for Adverts. Then the json files
...ANSWER
Answered 2020-May-17 at 23:55The new object to get params in React Navigation 5 is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hddled_tmj33
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page