This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Some LM Ambient questions
#2
1. In LM-Wall tab, there's LED Config button. Front LED is called "Ambient LED"

2. Try this:
Code:
function beep(freq, time)
  local path = '/sys/class/pwm/pwmchip0/pwm1/'
  io.writefile(path .. 'enable', 1)
  
  local period = math.floor(10 ^ 9 / freq)    
  local cycle = math.floor(period / 2)

  io.writefile(path .. 'period', period)
  io.writefile(path .. 'duty_cycle', cycle)

  os.sleep(time)

  io.writefile(path .. 'enable', 0)
end

-- 700hz for 1/10 second
beep(700, 0.1)

3. Not possible at this moment

4. It does not actually delete anything, it just resets the configuraion to default. If you delete the home page app, you can re-install it through the app admin

5. Only via a script
Reply


Messages In This Thread
Some LM Ambient questions - by leonidas - 11.04.2017, 07:09
RE: Some LM Ambient questions - by admin - 11.04.2017, 07:51
RE: Some LM Ambient questions - by leonidas - 11.04.2017, 08:32
RE: Some LM Ambient questions - by admin - 11.04.2017, 11:41
RE: Some LM Ambient questions - by leonidas - 12.04.2017, 07:59
RE: Some LM Ambient questions - by admin - 12.04.2017, 09:49

Forum Jump: