mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
removed obsolete 'name' method from the pd module
This commit is contained in:
parent
0ec2230e8e
commit
7a8ea9d2db
@ -1,11 +1,14 @@
|
||||
-- eLua test
|
||||
|
||||
if pd.name() == "AT91SAM7X" then
|
||||
if pd.platform() == "AT91SAM7X" then
|
||||
ledpin = pio.PB_20
|
||||
elseif pd.name() == "LM3S" then
|
||||
elseif pd.platform() == "LM3S" then
|
||||
ledpin = pio.PF_0
|
||||
else
|
||||
elseif pd.platform() == "STR9" then
|
||||
ledpin = pio.P9_0
|
||||
else
|
||||
print( "Unknown platform " .. pd.platform() )
|
||||
return
|
||||
end
|
||||
|
||||
function cycle()
|
||||
|
@ -30,8 +30,6 @@ static int pd_clock( lua_State* L )
|
||||
// Module function map
|
||||
static const luaL_reg pd_map[] =
|
||||
{
|
||||
//FIXME: remove "name" once web site samples use platform()
|
||||
{ "name", pd_platform },
|
||||
{ "platform", pd_platform },
|
||||
{ "cpu", pd_cpu },
|
||||
{ "clock", pd_clock },
|
||||
|
Loading…
x
Reference in New Issue
Block a user