🤖
Spiky Docs
CtrlK
  • 👋Welcome
  • Start coding
    • 🛠️Getting set up
      • 📝What do you need
    • 🦾Functions and Code
      • require("spiky.js")
      • Spiky
        • .filename
      • MotorPair
        • MotorPair()
        • move(amount, unit, steering, speed)
      • Timer
        • Timer(name)
        • reset()
      • StatusLight
        • on(color)
        • off()
      • Speaker
        • beep(note, seconds)
        • start_beep(note)
        • stop()
        • set_volume(volume)
      • App
        • App(name)
        • play_sound(sound, volume)
        • start_sound(sound, volume)
      • LightMatrix
        • show_image(image, brightness)
        • set_pixel(x, y, brightness)
        • write(txt)
        • off()
      • Math
        • acos(x)
        • acosh(x)
        • asin(x)
        • asinh(x)
        • atan(x)
        • atan2(x, y)
        • atanh(x)
        • ceil(x)
        • copysign(x, y)
        • cos(x)
        • cosh(x)
        • degrees(x)
        • erf(x)
        • erfc(x)
        • exp(x)
        • expm1(x)
        • fabs(x)
        • floor(x)
        • fmod(x)
        • frexp(x)
        • gamma(x)
        • isfinite(x)
        • isinf(x)
        • isnan(x)
        • ldexp(x, exp)
        • lgamma(x)
        • log(x)
        • log10(x)
        • log2(x)
        • modf(x)
        • pow(x, y)
        • radians(x)
        • sin(x)
        • sinh(x)
        • sqrt(x)
        • tan(x)
        • tanh(x)
        • trunc(x)
      • ColorSensor
        • ColorSensor(name, port)
        • light_up_all(brightness)
        • light_up(light_1, light_2, light_3)
      • Code
        • custom(code)
        • if(options)
        • print(value)
        • wait(time)
  • the devs
    • 🖥️Developers
Powered by GitBook
On this page
  • Parameters:
  • Errors:
  1. Start coding
  2. 🦾Functions and Code
  3. ColorSensor

light_up_all(brightness)

Lights up all of the lights on the Color Sensor at the specified brightness. This causes the Color Sensor to change modes, which can affect your program in unexpected ways. For example, the Color Sens

Parameters:

brightness: number

Errors:

TypeError: brightness is not an integer.

PreviousColorSensor(name, port)Nextlight_up(light_1, light_2, light_3)

Last updated 2 years ago