I want to develop a Homebrew app.

cloudd361

New Member
OP
Newbie
Joined
Oct 23, 2023
Messages
1
Trophies
0
Age
26
XP
19
Country
Turkey
I am a jr. software dev who experienced various topics. Not the best but i know or learn how things work. So here is the question. If want to develop a simple homebrew app for just monitoring temps of console. Where should i start ?
 
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
First of all you're going to want to make sure you know either C or C++. Those are really your only two options for making Switch apps. There are interpreters for Python and JS but afaik they don't support all LibNX functions.

If you know C and C++ then you're going to need to install the DevkitPro / LibNX toolchain. Install instructions are here: https://switchbrew.org/wiki/Setting_up_Development_Environment
If you're a Windows user then I very much recommend installing it via WSL.

Once you have DevkitPro / LibNX installed check out the LibNX example repo here to learn how it works https://github.com/switchbrew/switch-examples

Once you're comfortable using LibNX you can find the full documentation here. 99% of the time you're going to be looking in the "services" section unless you're doing something advanced. https://switchbrew.github.io/libnx/files.html

For your use case (monitoring the temps of the console) you probably want to be in the "tc" service. Here's a direct link for the documentation for that https://switchbrew.github.io/libnx/tc_8h.html

Remember to initialise the service before you try to call any of the functions. That's something that always trips people up. I forget to initialise services myself sometimes and get confused as to why the functions aren't working. If you look at the examples I linked above you'll see how that works.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    The snack that smiles back, Ballsack!
    BakerMan @ BakerMan: yeah, i'm Anyone, that's just not my alias here