As is known, there isn't discontinuous functions in Smooth Infinitesimal Analysis.
I tried to define discontinuous function on $\Delta$:
$f(x) = \begin{cases} 1, & \text{if $x$ = $0$} \\ 0, & \text{if $x$ $\in$ $\Delta$ \ {0}} \end{cases}$
Where did I go wrong?
Thanks.
Intuitionistic logic does not allow you to carve up a set into a union of "one point" and "all the rest": that requires excluded middle.
The good news is that there is a map $f$ that satisfies your definition in SDG. But its domain is not $\Delta$; instead, it's $\{0\} \cup (\Delta \setminus \{0\})$.
We can show that $\Delta \setminus \{0\}$ is empty, since $x \in \Delta \setminus \{0\}$ precisely if $x \in \Delta$ and $x \neq 0$, but no infinitesimal satisfies $x \neq 0$.
So the domain of definition of your function $f$ is the object $\{0\}$. And of course $f$ is continuous on $\{0\}$.