Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
-- the writer. the number input will be in a string. the writer needs to be named thingamalangInput1
-- now, thingamlang is whatever number the "thingamalangInput1" writer is in string.
-- if you wanted to display this text on a display, use:
-- display = getDisplays()[1]
-- display.clear()
-- display.drawText(1, 1, thingamalang)
-- display.forceFlush()
-- display.flush()
-- and just put this below the tostring(getreg( line
display = getDisplays()[1]
N1 = tostring(getreg("N1"))
N2 = tostring(getreg("N2"))
N3 = tostring(getreg("N3"))
N4 = tostring(getreg("N4"))
ENN = N1 + N2*10 + N3*100 + N4*1000
display.clear()
display.drawText(1,1, ENN)
display.flush()
function callback_loop()
if _endtick then
display.clear()
display.forceFlush()
end
end
so, you need 4 writers named "N1", "N2", "N3", and "N4"
add a counter block, and add the number blocks with the 4 digits coloured for numbers in the thousands. connect the first digit to the "N1" writer, second to "N2", and so on.
add a number into the counter, and turn the computer off and then back on. it will show that number in the display.